On Aug 27, 2:36 am, [EMAIL PROTECTED] (Andreas Moroder)
wrote:
> Hello,
>
> I have to store more then one value in a hash array. I tried to store a
> array as value in the hash. But when I try to retrieve it I don't get the
> array I have stored.
>
> Can anyone please help me.
$a{val1} = "a1";
@tmpset = split ':', $a{val3};
unshift @tmpset, "baker45";
$a{val3} = join ':', @tmpset;
or see the pages on freeze/ thaw
what is being stored in your hash as a value is a reference to an
anonymous array.
when the hash value is being extracted, the reference may not be
pointing to the same existing array of values
this will become a major issue with tie'd arrays
-======-
Kermit T
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/