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

Answer: How do I print a quotation-mark?

by merlyn (Sage)
on Aug 11, 2000 at 17:56 UTC ( #27515=categorized answer: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
[Discipulus]: ovedpo15 A subroutine may be called using an explicit & prefix. The & is optional in modern Perl... see perlsub in docs and search for ampersand
[Discipulus]: it has some, even dangerous, implication
[Discipulus]: I still use but I also attract many critics for this: I use when I call subs defined in the very same file, just to recognize them. You can avoid (but sometimes is needed)
[marto]: believe it or not this is a SPAM account :P
[Discipulus]: it seems a legitimate one.. grin ..

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2018-05-22 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?