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

Re: /ee regex modifier

by chipmunk (Parson)
on Nov 14, 2001 at 08:38 UTC ( #125244=note: print w/replies, xml ) Need Help??


in reply to /ee regex modifier

If /e interpolated variables in the replacement, then a substitution like the following would not work: s/(\d+)/$x = $1/e;
/e treats the replacement string like eval BLOCK. It's compiled at script compile-time, and variables are not interpolated.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2020-01-21 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?