Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: To Single Quote or to Double Quote

by Joost (Canon)
on Feb 02, 2005 at 14:39 UTC ( [id://427268]=note: print w/replies, xml ) Need Help??


in reply to Re: To Single Quote or to Double Quote
in thread To Single Quote or to Double Quote

single quotes will escape all escape charater

Not completely:

print 'there\'s a \' quote here, there\'s a \\ backslash here';
Anyway, it works the other way around: single quotes interpret only a few escape sequences, double quotes have more (and they interpolate variables).

See the section on "Quote and Quote-like Operators" in perlop.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://427268]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-09-08 02:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.