Data::Remember::Util - common helper utilities
version 0.140490
use Data::Remember::Util qw( process_que init_brain ); my $clean_que = process_que($handy_que); my $brain = init_brain($name, @args);
These are some common helper utilities used by Data::Remember::Class and some of the brain implementations. Unless you are building a custom brain, you probably don't need these.
my $clean_que = process_que($handy_que);
The format defined in "QUE" in Data::Remember::Class is very flexible. That section describes how all the flexible que formats are mapped into a canonical form. This is utility subroutine that does that clean-up process.
This is performed automatically on behalf of each brain by Data::Remember::Class, so you do not normally need this if you are just implementing the usual brain functions. However, if you have custom methods that require additional features, you may want this helper.
my $brain = init_brain($module, @args);
This is a helper that checks the arguments given, loads the brain class for the given module name, constructs a brain, and returns it.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2014 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::Remember, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Remember
CPAN shell
perl -MCPAN -e shell install Data::Remember
For more information on module installation, please visit the detailed CPAN module installation guide.