|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Perl Idioms Explained - keys %{{map{$_=>1}@list}}by Aristotle (Chancellor) |
| on Aug 04, 2003 at 16:18 UTC ( [id://280788]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Just as memory hungry, still not order preserving, and still broken with regards to undefined values, but faster approach:
And if you want to wrap it up without "leaking" lexicals: This approach does not (explicitly) iterate - more of the data structure setup work is done implicitly by perl. Makeshifts last the longest.
In Section
Meditations
|
|
||||||||||||||||||||||||||||||||||||||||||