On 05/21/02 Aaron Sherman wrote: > On Tue, 2002-05-21 at 12:57, Michael G Schwern wrote: > > > Here's an easier one: backslash followed by the delimiter is that thing. > > Everything else is literal. > > > > print 'c:\it\'s\easier\to\write\win32\paths\this\way'; > > print q{this is ok { and so is \} } C:\this }; > > I desire you print your statement above. Would it be: > > print 'print \'c:\it\\'s\easier\to\write...\';'; > > The quesiton here is that C<\\'>, which means something different in > your recommendation than it means in Perl5, but still does the same > thing....
C# has verbatim strings where backslash doesn't quote the next char: Write (@"c:\it's\easier\to\write\win32\paths\this\way"); and Write (@"Write (@""c:\it's\easier\to\write\win32\paths\this\way"")"); (note you need to use two double quotes: basically in verbatim strings " escapes, but it can be only followed by itself). string s = @"blah continued blah"; works, too. With a parser tweak perl could use @" and @' to introduce such strings (they are not already taken as special vars): I don't see big quirks with that notation. lupus -- ----------------------------------------------------------------- [EMAIL PROTECTED] debian/rules [EMAIL PROTECTED] Monkeys do it better