Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Evaluating $1 construct in literal replacement expression

by Anonymous Monk
on Feb 06, 2009 at 11:58 UTC ( [id://741882]=note: print w/replies, xml ) Need Help??


in reply to Re: Evaluating $1 construct in literal replacement expression
in thread Evaluating $1 construct in literal replacement expression

So much for previews !

#s/$search/na $1/g;

s/$search/sprintf '%s',"na $1"/ge;

  • Comment on Re^2: Evaluating $1 construct in literal replacement expression

Replies are listed 'Best First'.
Re^3: Evaluating $1 construct in literal replacement expression
by Anonymous Monk on Feb 06, 2009 at 12:10 UTC
    Pls ignore the ramblings above

    This works

    s/$search/$search="na $1"/ge;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2026-02-13 22:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.