LA.pm: Quotes

Arkadiy Sudarikov asudarikov at xceed.com
Wed Oct 17 19:17:54 CDT 2001


Thanks, ya all. But what to do if my " is in regex (pattern-matching)?

-----Original Message-----
From: Douglas Wilson [mailto:dgwilson at gtemail.net]
Sent: Wednesday, October 17, 2001 5:13 PM
To: Arkadiy Sudarikov; list at la.pm.org
Subject: Re: LA.pm: Quotes



From: Arkadiy Sudarikov <asudarikov at xceed.com>

> Heya, kids, I have a perl code that's got both ' and " (I can't substitute
> them, unless, of course, I do, like, \cddd or something). I want to run it
> with perl -e. perl -e uses ' or " and this conflicts with my snippet.
What's
> your suggestions?

w/*nix you can just wrap the whole thing in
double quotes, then just backslash any inner
double quotes. And/or use q{} or qq{} if that's
all you're using the inner quotes for.

-Doug
-- 

_______________________________________________
Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! 
http://www.net2phone.com/cgi-bin/link.cgi?143 





More information about the Losangeles-pm mailing list