Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Performance of assambled regex

by shmem (Chancellor)
on Jul 26, 2015 at 12:52 UTC ( [id://1136350]=note: print w/replies, xml ) Need Help??


in reply to Performance of assambled regex

Use

while(<$fh_big_file>) { print if (/$regex/o .. /^END_OF_BLOCK/); }

to avoid recompilation of the regex.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2024-04-23 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found