foreach $line (@array) { foreach $pat (@pattern) { if($line =~ /$pat/) { push (@new_array, $line);
In reply to Re: comparing two arrays and displaying scalar matches
by pipeops
in thread comparing two arrays and displaying scalar matches
by pipeops
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |