Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Re: Re: Problem w/ single-quoted strings

by bassplayer (Monsignor)
on May 14, 2004 at 05:36 UTC ( #353281=note: print w/ replies, xml ) Need Help??

in reply to Re: Re: Problem w/ single-quoted strings
in thread Problem w/ single-quoted strings

It said that to get a backslash to print as part of a single-quoted string you need to use two and what I showed proved that to be false.
I don't believe that you have proven the statement false. When you used two, it interpolated it as one (as your quote described) and it came out as \n. Basically, it only interpolates \' and //, so \n is not going to become a newline. I apologize for any lack of clarity. nmcfarl provides a nice example below, and Stevie-O's #4 (below) lays it out nicely.


Comment on Re: Re: Re: Problem w/ single-quoted strings
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2015-11-28 05:14 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls