![]() |
|
Perl: the Markov chain saw | |
PerlMonks |
Re: Is there an easy way to assign guaranteed unique values to a simple array without looping through whole array?by mreece (Friar) |
on Nov 30, 2007 at 02:26 UTC ( #654029=note: print w/replies, xml ) | Need Help?? |
if i understand correctly, you can do it with an intermediate hash and grep.
as for whether you consider grep "having to loop" or not, well, it's a lot less loopy than sorting keys...
In Section
Seekers of Perl Wisdom
|
|