Andrew Sterling Hanenkamp > Form-Factory-0.020 > Form::Factory::Stasher::Memory

Download:
Form-Factory-0.020.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.020   Source  

NAME ^

Form::Factory::Stasher::Memory - Remember things in a Perl hash

VERSION ^

version 0.020

SYNOPSIS ^

  $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');

DESCRIPTION ^

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.

ATTRIBUTES ^

stash_hash

The hash reference to stash stuff into. Defaults to an empty anonymous hash.

METHODS ^

stash

Stash the stuff given.

unstash

Unstash the stuff requested.

AUTHOR ^

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE ^

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.

syntax highlighting: