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

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

Thread Previous | Thread Next
Ilya Zakharevich
November 25, 1999 22:55
Re: [ID 19991118.014] Error producing ^\ (chr 28) with "\c\\"
Message ID:
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\\';

does what one expects.  Your change will break it.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About