From: David Vallner Date: 2007-02-22T22:05:14+09:00 Subject: Re: Weird behaviour escaping special characters in a string On Thu, 22 Feb 2007 13:55:06 +0100, Greg Hurrell wrote: > On 21 feb, 20:50, Brian Candler wrote: > >> In a single-quoted string: >> \' => ' >> \\ => \ >> \x => \x for all other x >> >> So '...\1' and '...\\1' are identical. > > Excellent, that explains why I was getting the same results for 3 and > 4 slashes, and the same for 5 and 6 slashes. > %q{...} is your friend. David Vallner