Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie question...

Status
Not open for further replies.

LiquidBinary

Programmer
Jul 27, 2001
148
US
How do I quote output?

print "This is supposed to be quoted";

How do I get this output ->

"This is supposed to be quoted"

Instead of just ->

This is supposed to be quoted

Mike L.G.
mlg400@blazemail.com
 
Try

print qq["This is supposed to be quoted"\n];



regards
C "Brahmaiva satyam"
-Adi Shankara (788-820 AD)
 
Or:
Code:
print "\"This is supposed to be quoted\"\n";

or:

print <<END;
&quot;This is supposed to be quoted&quot;
END

or:

print '&quot;This is supposed to be quoted&quot;',&quot;\n&quot;;
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top