use Algorithm::Diff qw(LCSidx); my @bigarray = qw(this is the main array from which to delete elements); my @smallarray = qw(delete elements); my ($index_range) = LCSidx \@bigarray, \@smallarray; splice @bigarray, $index_range->[0], @$index_range;
In reply to Re: Check if one array is a subset of another
by Anonymous Monk
in thread Check if one array is a subset of another
by cstrong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |