Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-03-24 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (307 votes). Check out past polls.