Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re^2: To Single Quote or to Double Quote

by Joost (Canon)
on Feb 02, 2005 at 14:39 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2021-10-25 13:40 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (89 votes). Check out past polls.