Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Improve processing time for string substitutions

by Corion (Patriarch)
on Apr 16, 2007 at 15:56 UTC ( [id://610386]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Improve processing time for string substitutions
in thread Improve processing time for string substitutions

The /e switch is an error by me - it is a leftover from when I thought about doing the hex-conversion manually with a sprintf call in the right hand side..

I always build my regular expressions with noncapturing parentheses when I pal on latter assembling them - this prevents embarassing bug hunts later when I change how the target RE is built, possibly by repeating one ("atomic") building block - leaving out the parentheses causes hard-to-track misbehaviour with input on the seam of the two blocks.

.

Replies are listed 'Best First'.
Re^4: Improve processing time for string substitutions
by Anno (Deacon) on Apr 16, 2007 at 16:06 UTC
    I always build my regular expressions with noncapturing parentheses when I pal on latter assembling them - this ...

    Same here, but I've always thought of qr// as an alternative way to add those parens (which it does). You are, in effect, adding two pairs.

    Anno

Log In?
Username:
Password:

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

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

    No recent polls found