NAME

Apache2::WebApp::Stash - Object that contains stored variables

SYNOPSIS

my %vars = (
    foo => 'bar',
    baz => qw( bucket1 bucket2 bucket3 ),
    qux => qw{
               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'

DESCRIPTION

A simple mechanism for passing objects and variables between calls.

SEE ALSO

Apache2::WebApp

AUTHOR

Marc S. Brooks, <mbrooks@cpan.org> http://mbrooks.info

COPYRIGHT

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