Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Answer: How do I print a quotation-mark?

by merlyn (Sage)
on Aug 11, 2000 at 17:56 UTC ( #27515=categorized answer: print w/replies, xml ) Need Help??

Q&A > strings > How do I print a quotation-mark? - Answer contributed by merlyn

For all stringish things, putting a backslash in front of the closing delimiter reduces it to ordinary character status:
my $string = "He said, \"That's a lie!\"";

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the radiator hisses contentedly...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2017-02-21 15:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (313 votes). Check out past polls.