Problems? Is your data what you think it is? | |
PerlMonks |
(jeffa) Re: one-liner to merge arraysby jeffa (Bishop) |
on Sep 27, 2001 at 23:25 UTC ( [id://115218]=note: print w/replies, xml ) | Need Help?? |
The reason why is because your map is evaluating into a
hash reference, not a hash - values take a hash for it's
argument, not a hash reference. Now, if you use a
tempory hash reference instead, the reason for the double
curlies becomes much more apparent:
Good question, by the way :) jeffa
In Section
Seekers of Perl Wisdom
|
|