perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sherwin Daganato <sher...@saturn.emc.com.ph>
Subject Re: sharing data across SSI's (Executes)
Date Wed, 03 Sep 2003 13:51:33 GMT
On Wed, Sep 03, 2003 at 09:33:07AM +0200, Harald Becker wrote:
[...]
> %udat only recognize changes in keys and values. If value is a reference
> to hash or array it will not update the session data! So you must add a
> dummy "changed" key and switch value from 0 to 1 or 1 to 0 if you want
> to update the session data.

If this is so, I think you can achieve the same behaviour by
dereferencing *value* and then referencing it back. For example:

$udat{key} = [ @{ $value_arrayref } ] 
or
$udat{key} = { %{ $value_hashref } }


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message