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

Re^3: "ee" in Regular Expression: version issue?

by Kenosis (Priest)
on Dec 03, 2012 at 20:32 UTC ( #1006946=note: print w/ replies, xml ) Need Help??


in reply to Re^2: "ee" in Regular Expression: version issue?
in thread "ee" in Regular Expression: version issue?

Yes, excellent. Perhaps the enclosing double-quotes (also) helps to disambiguate the expression. After the first eval, the interpreter sees this:

$var =~ s/(\d*?)-(.*?)-(.*)/$1$2$3/ee;

The substituting expression is problematic w/o either being interpolated via "$1$2$3" or concatenated using $1.$2.$3.


Comment on Re^3: "ee" in Regular Expression: version issue?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (6)
As of 2016-02-14 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (471 votes), past polls