Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1205010]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-24 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found