Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Answer: How do I surround commas with escaped double-quotes?

by Shendal (Hermit)
on Aug 23, 2000 at 19:50 UTC ( #29230=categorized answer: print w/replies, xml ) Need Help??

Q&A > regular expressions > How do I surround commas with escaped double-quotes? - Answer contributed by Shendal

$_ = ','; s!,!"\\\\\\",\\\\\\""!; print "$_\n";
This prints:
"\\\",\\\""
Is this what you're looking for?

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2016-09-01 04:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found