in reply to Re^2: Bolt on where a match is not found to a print script
in thread Bolt on where a match is not found to a print script
I believe if you change this line:
my $regex = '\b(?:' . join('|', @nums) . ')\b'; # update: fixed concat +enation issue
to this:
my $regex = '\b(' . join('|', @nums) . ')\b'; # update: fixed concaten +ation issue
it does the job.
For instance, from the debugger (which, note, doesn't play well with my):
DB<1> $_ = "oh blah dee" DB<2> ($x) = m/(blah)/ DB<3> x $x 0 'blah'
Update: Fixed concatenation issue
-QM
--
Quantum Mechanics: The dreams stuff is made of
|
|---|