in reply to Subtracting Lists
Admittedly it isn't very efficient, but it was kinda fun to write.use List::MoreUtils qw(any); @diff = map { my $x = $_; (any { $x eq $_ } @badstuff) ? () : $x; } @badstuff;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Subtracting Lists
by blazar (Canon) on Jun 02, 2008 at 17:14 UTC |