NAME

Data::Remember::Util - common helper utilities

VERSION

version 0.140490

SYNOPSIS

use Data::Remember::Util qw( process_que init_brain );

my $clean_que = process_que($handy_que);
my $brain = init_brain($name, @args);

DESCRIPTION

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.

SUBROUTINES

process_que

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.

init_brain

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.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

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.