Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Answer: How do I print a quotation-mark?

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

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

Use some other string delimter, such as single quote (') or qq (as in qq(...) or qq/.../):
print qq[And vroom said "Let there be nodes!" and there were nodes.\n] +;
Use a "here-document" syntax:
print <<"WALDO"; "Where is Waldo?" asked the creature? It replied "On the next line!" WALDO

Comment on Answer: How do I print a quotation-mark?
Select or Download Code
Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2015-11-29 23:43 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (754 votes), past polls