Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: efficient char escape sequence substitution

by mifflin (Curate)
on May 27, 2005 at 23:08 UTC ( [id://461256]=note: print w/replies, xml ) Need Help??


in reply to Re: efficient char escape sequence substitution
in thread efficient char escape sequence substitution

Can you help me understand your regex modifiers?
gee
Where in perldoc can I find an explanation?

Replies are listed 'Best First'.
Re^3: efficient char escape sequence substitution
by Roy Johnson (Monsignor) on May 27, 2005 at 23:35 UTC
    Documentation.

    g means global replace. e means eval the substitution space before substituting it. Repeating the e means eval it again. So it starts out looking like the string qr("\\t"); after an eval, it looks like "\t", and after a 2nd eval, it's just a tab. (Actually, it may have captured more than just the tab, but anything after the tab is left intact.)


    Caution: Contents may have been coded under pressure.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (8)
As of 2024-03-28 09:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found