Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Escaping %params

by AnomalousMonk (Archbishop)
on Jan 21, 2014 at 23:27 UTC ( [id://1071547]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Escaping %params
in thread Escaping %params

s/_/\_/g

s/_/\_/g does nothing. You probably want  s/_/\\_/g

>perl -wMstrict -le "$_ = 'a_b__c___'; print qq{before: '$_'}; ;; s/_/\_/g; print qq{after: '$_'}; " before: 'a_b__c___' after: 'a_b__c___'

But please allow me to add my voice to the chorus imploring you to Just Use Placeholders!.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2024-04-19 23:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found