> How about using a hashref
>     $stuff = { a => '1', b => '2', c => '3' };
>     $Session->{Stuff} = $stuff;
> instead of a hash?

According to the other person, that would fix your problem.
Personally, I know too litte of EmbPerl to be of more help.

btw,
  $Session->{Stuff}{$i}
is the same as
  $Session->{Stuff}->{$i}
so you were already expecting a hashref. I think perllol is the relevant
man page, and you might also want to review perlref.

ELB


Original Problem:
> I've been trying to store a hash in a session variable, using
> code like that appended below.  Call me a doofus, but I can't
> seem to get it to work.  Can anybody tell me what I'm doing wrong?
>
> Example follows:
> <html><body><pre>
> <%
> %stuff = ( a => '1', b => '2', c => '3' );
>
> $Session->{Stuff} = %stuff;
>
> $Response->Write ( "Results --\n" );
> for $i (keys %{$Session->{Stuff}} ) {
>         $Response->Write ( "$i: $Session->{Stuff}{$i}\n" );
> }
>
> %>
> </pre></body></html>

--
Eric L. Brine  |  Chicken: The egg's way of making more eggs.
[EMAIL PROTECTED]  |  Do you always hit the nail on the thumb?
ICQ# 4629314   |  An optimist thinks thorn bushes have roses.

Reply via email to