my(@array,%hash); for (1,2,3,2){push @array,$_ unless $hash{$_}++}; print @array; # prints 123 (no duplicates)
In reply to Re: Getting rid of duplicates
by jZed
in thread Getting rid of duplicates
by New Novice
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |