Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^5: Bolt on where a match is not found to a print script

by QM (Parson)
on Dec 06, 2017 at 11:59 UTC ( #1205010=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1205010]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2021-04-14 07:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?