in reply to Re^4: Storying a Hash inside a CGI::Session Param?
in thread Storing a Hash inside a CGI::Session Param?
Ok try this:
# store a reference to the hash # note the backslash! $session->param("access", \%access);
Now to retrieve your data:
#retrieve the reference to the hash my $access_ref = $session->param("access");
Once you have the reference to the hash back, you can use it to access the data:
# access the data in the hash reference print "My data from the hash is: ", $access_ref->{hashkey}, "\n";
Replace "hashkey" above with an actual hash key. See if that works for you.
|
|---|