Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Re: Removing Duplicates from an Arrayby merlyn (Sage) |
on Sep 18, 2001 at 19:18 UTC ( [id://113137]=note: print w/replies, xml ) | Need Help?? |
I'm pretty sure you wanted grep there and not map, and you're altering %_ without warning. As others have said, look at the FAQ entry
for proper code.
-- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|