Which will get rid of all the duplicate elements in your array. Of course the above is quick, dirty and hackish, but if you're merely munging an array of strings, it should do the job.@arr = map { $_ if !$_{$_}++ } @arr;
broquaint
In reply to Re: Removing Duplicates from an Array
by broquaint
in thread Removing Duplicates from an Array
by azatoth
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |