It's unclear from the description which of these (or something else) the OP wants.my @matches = grep { my $term = $_; grep{ $_=~/$term/}@lines } @terms;
In reply to Re^2: One line assigment statement with regex match
by jZed
in thread One line assigment statement with regex match
by ketema
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |