- or download this
sub uniq (@) {
my %h;
map { $h{$_}++ == 0 ? $_ : () } @_;
}
- or download this
sub bad_uniq {
my %h;
@h{@in} = ();
return keys %h;
}
- or download this
use List::MoreUtils 'uniq';
use Data::Dumper;
...
@from_keys = (
'ARRAY(0x8153c28)'
);