Keep It Simple, Stupid | |
PerlMonks |
Re: removing duplicate entries from an arrayby kirbyk (Friar) |
on Nov 07, 2005 at 20:51 UTC ( [id://506523]=note: print w/replies, xml ) | Need Help?? |
Quick and dirty? How about:
Of course, it's a huge waste to create the second array for a placeholder (even though that code is very easy to understand.) You probably want to delete the entries in place, using splice or array slices, if the array can possibly be of any length. -- Kirby, WhitePages.com
In Section
Seekers of Perl Wisdom
|
|