Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: find substring faster

by SimonClinch (Deacon)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://907216]
help
Chatterbox?
[jedikaiti]: Hi, Monks
[marto]: heya jedikaiti!
[jedikaiti]: Cute Robot!
[jedikaiti]: How's life, marto?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (18)
As of 2017-07-25 14:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (374 votes). Check out past polls.