* Enrique I.Rodriguez ([EMAIL PROTECTED]) [001103 12:41]:
> Maybe a silly question... 
> 
> how do I store/retrieve a hash through Apache::Session?
> 
> This doesn't work...
> # retrieve
> %table=$session{table};
> ...
> # store
> $session{table}=%table;
> 
> What's my fault?

You can only store/read references:

 my %table = (this => 'that' );
 $session{table} = \%table;

 ...

 my $table = $session{table};
 foreach my $key ( keys %{ $table } ) {
   print "$key = $table->{ $key }\n";
 }

see 'perldoc perlref' for much more on references.

HTH

Chris

-- 
Chris Winters
Senior Internet Developer    intes.net
[EMAIL PROTECTED]           http://www.intes.net/
Integrated hardware/software solutions to make the Internet work for you.

Reply via email to