in reply to Re: Single quoting weirdness
in thread Single quoting weirdness
and I find the former in particular to be very convenient. If there was only one quote delimiter to choose from, well that is a pain. But with the range of choices in Perl, it is pretty rare to run across a single-quote situation that wouldn't work easily.echo q($foo'$bar) echo "\$foo'\$bar"
OTOH there is no syntax in Perl that gives you a row of backslashes easily. And given the way the rest of Unix works, I often want exactly that (just to pass a single backslash through several layers of interpolation - each of which loses half of them).
|
|---|