Dariusz Pietrzak wrote:
>
> $data = $Session->{complex}{data}; # Read ok.
> $Session->{complex}{data} = $data; # Write NOT ok.
> $Session->{complex} = {data => $data}; # Write ok, all at once.
>
> Please see MLDBM for more information on this topic. $Session can also be
> used for the following methods and properties:
>
> Hmm, i think that equivalent to $Session->{complex} = {data => $data }
> would be $Session->{complex}->{data} = $data
> not $Session->{complex}{data} = $data.
>
$Session->{complex}->{data} = $data
$Session->{complex}{data} = $data
These two should be the same, the arrow being an alias.
Note in the above, I am not trying to say to do either of these
$Session->{complex}{data} = $data; # Write NOT ok.
NOT ok because the data won't get stored. A complex data
structure can only be stored to a tied data structure
if its top level value is modified:
$Session->{complex} = {data => $data};
This is just to trigger the correct STORE() response from
perl's tied interface on that hash ref.
--Josh
_________________________________________________________________
Joshua Chamas Chamas Enterprises Inc.
NodeWorks Founder Huntington Beach, CA USA
http://www.nodeworks.com 1-714-625-4051
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]