Welcome to the Monastery | |
PerlMonks |
Re^2: Assign (key, value) to a hash w/o clobbering hashby reasonablekeith (Deacon) |
on Sep 28, 2006 at 13:30 UTC ( [id://575350]=note: print w/replies, xml ) | Need Help?? |
because the OP doesn't want to clobber what's already in the hash. Assigning a list to a hash clears out the hash first, and then starts assigning the new values.
Update: argh, see mreece's reply to this post
Regardless, the map is completely redundant here, the following two are equivalent.
--- my name's not Keith, and I'm not reasonable.
In Section
Seekers of Perl Wisdom
|
|