Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: search, replace and backrefrences

by diotalevi (Canon)
on Sep 30, 2002 at 15:18 UTC ( #201736=note: print w/replies, xml ) Need Help??


in reply to search, replace and backrefrences

I suspect perl is DWIMing your potential $1_0_0_ into $1. The actual fix is to just encose the '1' in curlies like s/ ... /${1}0_0$2/. You use curlies to disambiguate interpolated variables where needed.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-01-28 00:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (72 votes). Check out past polls.

    Notices?