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 25, 1999 22:55
Subject:
Re: [ID 19991118.014] Error producing ^\ (chr 28) with "\c\\"
Message ID:
199911260655.BAA13561@monk.mps.ohio-state.edu
Simon Cozens writes:
> This now makes sense, and that's roughly how I had thunk it should go.
> At least this way is relatively easy to implement: special-case
> \c\[something] then fall back to parsing from \c if there wasn't a
> following backslash - that way we could get it all in one left-right
> pass, which seems the most intuitive, even if it isn't. 

As Larry explains, it breaks many other expectations one has about
quoting.  Currently 

  $a = '\c\\';
  /$a/

does what one expects.  Your change will break it.

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