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

Answer: How do I print a quotation-mark?

( #27515=categorized answer: print w/ replies, xml ) Need Help??

Q&A > strings > How do I print a quotation-mark? 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!\"";

Comment on Answer: How do I print a quotation-mark?
Download Code
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2015-08-31 07:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (353 votes), past polls