Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Interpolate $1 in: s{...}{$to}

by ikegami (Patriarch)
on Jun 24, 2010 at 22:06 UTC ( [id://846404]=note: print w/replies, xml ) Need Help??


in reply to Interpolate $1 in: s{...}{$to}

'capture 1 is $1' is a template. You need something to process that template. If you want to keep the current template format, you could use /ee aka eval EXPR (which has safety issues) or String::Interpolate (which has an unconventional interface), or you could switch to something designed to be a template (e.g. Template::Toolkit).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://846404]
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: (3)
As of 2024-03-29 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found