Apache2::WebApp::Stash - Object that contains stored variables
my %vars = ( foo => 'bar', baz => qw( bucket1 bucket2 bucket3 ), qux => { key1 => 'value1', key2 => 'value2', ... }, ... ); $c->stash( 'global', \%vars ); # program continues... my $vars = $c->stash('global'); print $vars->{foo}; # returns 'bar' print @$vars->{baz} # returns 3 print $vars->{qux}->{key1}; # returns 'value1'
A simple mechanism for passing objects and variables between calls.
Apache2::WebApp
Marc S. Brooks, <mbrooks@cpan.org> http://mbrooks.info
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://dev.perl.org/licenses/artistic.html
To install Apache2::WebApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::WebApp
CPAN shell
perl -MCPAN -e shell install Apache2::WebApp
For more information on module installation, please visit the detailed CPAN module installation guide.