http://qs1969.pair.com?node_id=671833


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
    Ahh, that's what I was trying to do---I couldn't figure out how to make an anonymous array like that. Thankyou v much!
    ........
    Those are my principles. If you don't like them I have others.
    -- Groucho Marx
    .......