On Fri, 3 Nov 2000, Enrique I.Rodriguez wrote:

> Maybe a silly question... 
> 
> how do I store/retrieve a hash through Apache::Session?

store hash references, not hashes.

> 
> This doesn't work...
> # retrieve
> %table=$session{table};

$tableref = $session{table};


> ...
> # store
> $session{table}=%table;

$session{table}= \%table;

or, preferably:


my $tableref = {};

# add stuff to table
# ...

$session{table}= $tableref;

> 
> What's my fault?
> 

Reply via email to