in reply to Re: One line assigment statement with regex match
in thread One line assigment statement with regex match
It's unclear from the description which of these (or something else) the OP wants.my @matches = grep { my $term = $_; grep{ $_=~/$term/}@lines } @terms;
|
|---|