On Fri, 15 Sep 2000 11:25:31 -0700, Steve Fink wrote:

>Does it strike anyone else as odd that 'foo\\bar' eq 'foo\bar'?

It's an necessary evil. You need a way to escape the string delimiter,
so that it can be included in the string, for which the backslash is
used. Hence, you need to be a be to escape the backslash as well, or
else you could never incorporate a backslash+delimiter sequence in the
string.

Note that backlash and delimiter are the *only* things for which the
backslash character serves as an escape character:

        print q!\'\"\/\!\\!;
-->
        \'\"\/!\

        print q/\'\"\/\!\\/;
-->
        \'\"/\!\

-- 
        Bart.

Reply via email to