To remove duplicates:
#! /usr/bin/perl -w use strict; my @arr = (1, 2, 2, 3); @arr = keys %{{map {$_ => undef} @arr}}; print "$_\n" for @arr;
In reply to Re: Removing an element from an array
by pbeckingham
in thread Removing an element from an array
by sonic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |