laziness, impatience, and hubris | |
PerlMonks |
Re: Perl Idioms Explained - keys %{{map{$_=>1}@list}}by Juerd (Abbot) |
on Aug 04, 2003 at 13:02 UTC ( [id://280660]=note: print w/replies, xml ) | Need Help?? |
In the same category, to see if $bar is in @foo: or faster and using less memory:
Of course, for a single test, grep is easier and often faster:
Juerd # { site => 'juerd.nl', plp_site => 'plp.juerd.nl', do_not_use => 'spamtrap' }
In Section
Meditations
|
|