in reply to Re^4: 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

Ack, too much Python lately, apologies.
my $regex = '\b(?:' . join('|', @nums) . ')\b';

-QM
--
Quantum Mechanics: The dreams stuff is made of

Replies are listed 'Best First'.
Re^6: Bolt on where a match is not found to a print script
by Anonymous Monk on Dec 06, 2017 at 16:49 UTC

    tried this one, when one of the numbers is matched in a file it keeps printing it over and over on the screen .. so the script never finishes