Form::Factory::Stasher::Memory - Remember things in a Perl hash
version 0.003
$c->session->{stash_stuff} ||= {}; my $stasher = Form::Factory::Stasher::Memory->new( stash_hash => $c->session->{stash_stuff}, ); $stasher->stash(foo => { blah => 1 }); my $bar = $stasher->unstash('bar');
Stashes things into a plain memory hash. This is useful if you already have a mechanism for remember things that can be reused via a hash.
The hash reference to stash stuff into. Defaults to an empty anonymous hash.
Stash the stuff given.
Unstash the stuff requested.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
<hanenkamp@cpan.org>
Copyright 2009 Qubling Software LLC.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
To install Form::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Form::Factory
CPAN shell
perl -MCPAN -e shell install Form::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.