in reply to Re: using an array in a regex
in thread using an array in a regex
Nice answer, and an informative one. In fact generally one does this by hand joining on "|" - and probably forgetting to \Q...\E (or quotemeta). However it is worth mentioning that the OP may also do like most mortals:
for my $EXEC_block (@EXEC_block) { last if s/...//; # since we don't want to try again after we succeeded! }
PS: shameless self ad - (slightly) related topic!
|
|---|