Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Answer: How do I print a quotation-mark?

by turnstep (Parson)
on Aug 11, 2000 at 21:16 UTC ( #27547=categorized answer: print w/replies, xml ) Need Help??

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

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 chanting in the Monastery: (6)
As of 2017-06-26 16:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (583 votes). Check out past polls.