Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 cooling their heels in the Monastery: (4)
As of 2024-05-22 14:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found