|
|
| Just another Perl shrine | |
| PerlMonks |
Re^7: Perl Idioms Explained - keys %{{map{$_=>1}@list}}by Roy Johnson (Monsignor) |
| on Mar 02, 2005 at 16:11 UTC ( #435898=note: print w/ replies, xml ) | Need Help?? |
|
I would not have expected #3's behavior. Would you? I think it merits an "undef is not a listop" warning. The correct way to undef the values is: @h{qw|a b c|} = (); Caution: Contents may have been coded under pressure.
In Section
Meditations
|
|
||||||||||||||||||||