develooper Front page | perl.perl5.porters | Postings from November 1999

Re: [ID 19991118.014] Error producing ^\ (chr 28) with "\c\\"

Thread Previous | Thread Next
From:
Philip Newton
Date:
November 23, 1999 23:23
Subject:
Re: [ID 19991118.014] Error producing ^\ (chr 28) with "\c\\"
Message ID:
Pine.LNX.4.04.9911240307170.18828-100000@ficus.frogspace.net
On Tue, 23 Nov 1999, Ilya Zakharevich wrote:

> On Tue, Nov 23, 1999 at 05:00:24AM -0500, Philip Newton wrote:
> > > So you want it to be parsed left-to-right.  But you want \c\\ to be
> > > parsed right-to-left.  Choose one.
> > 
> > Not quite. I want '\\' to be translated to \ in a previous pass, before
> > the \c mechanism sees it. After the '\\' -> \ pass, I want left-to-right.
> 
> Then you are advising that "\\nc" and "\cc" should be parsed the same, right?

I don't get it. The first I would parse as three characters: backslash
(the two backslashes become one), n, c. The second as one character:
ctrl-C ("\x03").

Cheers,
Philip


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About