After
my %available_things= map { $_,1} @available_things;
your search is a simple lookup:
@not_available_requested_things = map { $_ if not $available_things{$_ +} } @requested_things;
In reply to Re: Matching array elements not in another array
by jethro
in thread Matching array elements not in another array
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |