Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: find substring faster

by SimonClinch (Chaplain)
on May 29, 2011 at 15:25 UTC ( #907216=note: print w/ replies, xml ) Need Help??


in reply to find substring faster

See perlre and perlretut. Hint - its exactly the same syntax as with sed in this case. But first disable carriage control for the filehandle using local $/ = undef(); It's more efficient than using multiline substitution.

One world, one people


Comment on Re: find substring faster
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2015-02-28 02:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    On my keyboard, Caps lock is:








    Results (458 votes), past polls