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.
- Re: RFC 226 (v2) Selective interpolation in singl... Uri Guttman
- Re: RFC 226 (v2) Selective interpolation in singl... Damian Conway
- Re: RFC 226 (v2) Selective interpolation in s... Glenn Linderman
- Re: RFC 226 (v2) Selective interpolation in single quotish... Glenn Linderman
- Re: RFC 226 (v2) Selective interpolation in single quotish... Philip Newton
- Re: RFC 226 (v2) Selective interpolation in single quotish... Andy Dougherty
- Re: RFC 226 (v2) Selective interpolation in single qu... Nathan Wiger
- Re: RFC 226 (v2) Selective interpolation in singl... Steve Fink
- Re: RFC 226 (v2) Selective interpolation in s... Bart Lateur
- Re: RFC 226 (v2) Selective interpolation in s... Michael Fowler
- Re: RFC 226 (v2) Selective interpolation in s... Philip Newton
- Re: RFC 226 (v2) Selective interpolation in single quotish... Brad Hughes