Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Interpolating backreferences in an eval

by ikegami (Patriarch)
on Feb 11, 2009 at 17:28 UTC ( [id://743116]=note: print w/replies, xml ) Need Help??


in reply to Re: Interpolating backreferences in an eval
in thread Interpolating backreferences in an eval

For it to run, that should be

expand(qr/a(.)c/, 'abc', '"a$1$1c"');

or

print (eval qq{"$to"})."\n"; expand(qr/a(.)c/, 'abc', 'a$1$1c');

But oh so wrong.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2025-06-24 23:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.