On Fri, 21 Jun 2002 13:21, Ben Reser wrote:
> 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__
> \\

D'oh! That's what i get for replying before checking (note to self - put brain 
in gear first!)....


Reply via email to