How can undef values fall into @triple array?
Anyway here is the fix:
foreach my $q (@quadruple) { @triple = grep {$_ and $q !~ /$_/} @triple; }
In reply to Re^3: searching in array elements substrings contained in another array
by ccn
in thread searching in array elements substrings contained in another array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |