in reply to
Unique strings
Am I colossally blind? I would think
keys %{{@list}}
suffices. I can't see any reason for the
reverse @list
part..
Update
: oow, d'uh.
dpuu
++
Makeshifts last the longest.
Comment on
Re: Unique strings
Select
or
Download
Code
Replies are listed 'Best First'.
Re: Re: Unique strings
by
dpuu
(Chaplain)
on Aug 20, 2002 at 19:20 UTC
A hash needs both keys and values. the
reverse
ensures each element appears as a key, somewhere. Otherwise you lose half the elements. --Dave
[reply]
[d/l]
In Section
Cool Uses for Perl