Re: Backslashes

2002-05-21 Thread Rafael Garcia-Suarez
Larry Wall wrote : > > Well, if anything, we're going the other direction, and enriching what > you can do with a backslash in single quotes slightly. But it ought > to be pretty easy to define your own hyperquotes. We might also have > options on quotes like we do on regexen. Then we could te

Re: Backslashes

2002-05-21 Thread Aaron Sherman
On Tue, 2002-05-21 at 13:22, Buddha Buck wrote: > At 01:10 PM 05-21-2002 -0400, Aaron Sherman wrote: > >The quesiton here is that C<\\'>, which means something different in > >your recommendation than it means in Perl5, but still does the same > >thing > > And the other question is how to ge

Re: Backslashes

2002-05-21 Thread Paolo Molaro
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 {

Re: Backslashes

2002-05-21 Thread Buddha Buck
At 01:10 PM 05-21-2002 -0400, 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

Re: Backslashes

2002-05-21 Thread Aaron Sherman
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 y

Re: Backslashes

2002-05-21 Thread Michael G Schwern
On Tue, May 21, 2002 at 11:03:42AM +0100, Nicholas Clark wrote: > I believe that the correct rule for single quote context in perl should have > been that backslash followed by anything is that thing. That leaves Win32 users stuck in the same rut as now: print 'c:\\it\'s\\going\\to\\be\\hard

Re: Backslashes

2002-05-20 Thread Larry Wall
Luke Palmer writes: : I'm sort of side-tracking from the trend of discussions, but I was just : thinking that I always found it annoying how you had to double backslashes : in single-quoted strings. I like the bash's behavior with regard to this : much better... I mean, the whole i

Re: Backslashes

2002-05-20 Thread David Wheeler
On 5/20/02 8:04 PM, "Luke Palmer" <[EMAIL PROTECTED]> claimed: > 'You think I' _ q{'} _ 'm knit-picking!' Ugh. If you really don't like back-slashing single quotes, do this: q{You think I'm knit-picking!}; I would agree that in a q{} context, it is silly that a double-backslash prints a single

Backslashes

2002-05-20 Thread Luke Palmer
I'm sort of side-tracking from the trend of discussions, but I was just thinking that I always found it annoying how you had to double backslashes in single-quoted strings. I like the bash's behavior with regard to this much better... I mean, the whole idea behind single-quoted