elements from array @a that are not in array @b
Here's another option for that:
use Modern::Perl; use List::Compare; my @a = 1 .. 10; my @b = 5 .. 14; my $lc = List::Compare->new(\@a, \@b); say $lc->get_unique;
Output:
1234
ps Aaron, I always appreciate your postings...
In reply to Re: Default variable within loops
by Kenosis
in thread Default variable within loops
by oldwarrior32
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |