in reply to using an array in a regex
But what I really want to do is substitute $EXEC_block with ...... 'any element of the array: @EXEC_block'.
use Regexp::List (); $EXEC_block = Regexp::List->new->list2re(@EXEC_block); ...
Reference: Regexp::List
It's !($var =~ $re) or $var !~ $re.please explain to me why Perl does not allow !=~.
Reference: perlop
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: using an array in a regex
by blazar (Canon) on Jan 17, 2006 at 09:09 UTC |