in reply to Re^2: Making a hash of arrays from a while loop
in thread Making a hash of arrays from a while loop
You're right, and the workaround is to create a new array:
$hash{$key} = [ @array ];
If there are references inside the array, you'll need somthing like Storable::dclone.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Making a hash of arrays from a while loop
by why_bird (Pilgrim) on Mar 04, 2008 at 09:47 UTC |
In Section
Seekers of Perl Wisdom