in reply to Braino - why is this not working?
The short answer would be to use the uniq function provided by List::MoreUtils.
What you have here seems incredibly complicated. Compare with the function I've just mentioned:
sub uniq (@) { my %h; map { $h{$_}++ == 0 ? $_ : () } @_; }
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Braino - why is this not working?
by perl-diddler (Chaplain) on Oct 19, 2010 at 01:04 UTC | |
by kcott (Archbishop) on Oct 19, 2010 at 17:04 UTC |