in reply to Remove duplicate strings from an array
This is almost a FAQ.
sub uniq { my %h; return grep { !$h{$_}++ } @_ }
|
---|
In Section
Seekers of Perl Wisdom
in reply to Remove duplicate strings from an array
This is almost a FAQ.
sub uniq { my %h; return grep { !$h{$_}++ } @_ }
|
---|