Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^5: Help me beat NodeJS

by RichardK (Parson)
on Feb 13, 2016 at 22:54 UTC ( [id://1155185]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Help me beat NodeJS
in thread Help me beat NodeJS

If you just looking for a plain string not a regex, then it should be quicker to use index

while (my $line = <$fh> ) { if (index($line,$pattern) != -1 ) { ... } }

Replies are listed 'Best First'.
Re^6: Help me beat NodeJS
by marioroy (Prior) on Feb 13, 2016 at 23:41 UTC

    yes, ++

      Very nice, thank you.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-20 07:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found