Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

advocate's scratchpad

by advocate (Scribe)
on Jul 04, 2007 at 15:10 UTC ( #624901=scratchpad: print w/ replies, xml ) Need Help??

note to self re: single-quoted strings & double-quoted strings #!/usr/bin/perl

use warnings;

print qq/'"Hi," said Jack. "Have you read Slashdot today?"'\n/;

--------------------------------------------------------

#!/usr/bin/perl

use warnings;

print qq|'"Hi," said Jack. "Have you read /. today?"'\n|;

print qq#'"Hi," said Jack. "Have you read /. today?"'\n#;

print qq('"Hi," said Jack. "Have you read /. today?"'\n);

print qq<'"Hi," said Jack. "Have you read /. today?"'\n>;

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: (4)
As of 2014-09-21 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (166 votes), past polls