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 \'
, 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.