On Fri, Jun 21, 2002 at 07:16:07AM +1000, Brendon Oliver wrote:
> In a single-quoted string:    '\\'  or q{\\}
> In a double-quoted string "\\\\"  or qq{\\\\}

Actually only the second set will work.  single quotes don't have
variable interpolation but they still do have escaped characters like
\n.  So \\\\ is still required for single quotes.

[breser@titanium breser]$ perl
print q{\\},$/
__END__
\
[breser@titanium breser]$ perl
print q{\\\\},$/
__END__
\\

-- 
Ben Reser <[EMAIL PROTECTED]>
http://ben.reser.org

We tend to see all wars through the lens of the current conflict, and we
mine history for lessons convenient to the present purpose.
- Brian Hayes

Reply via email to