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:
Ilya Zakharevich
Date:
November 19, 1999 09:49
Subject:
Re: [ID 19991118.014] Error producing ^\ (chr 28) with "\c\\"
Message ID:
19991119124913.F20768@monk.mps.ohio-state.edu
On Fri, Nov 19, 1999 at 11:17:03AM -0500, Philip Newton wrote:
> > And what would "\c\c\c\c\\" do, in your opinion? ;-)
> 
> My guess is ^\ + 'c' + ^\ + 'c' + '\\', i.e. ASCII 28, 99, 28, 99, 92. And
> that's what Perl does.

So you want it to be parsed kleft-to-right.  But you want \c\\ to be
parsed right-to-left.  Choose one.

> This still doesn't explain to me, though, hough to produce a string
> consisting solely of the character ^\.

TIMTOWTDI.  chr(ord('\\')-62) (or is it 32?) is one of them.

Ilya

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