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 20, 1999 23:56
Re: [ID 19991118.014] Error producing ^\ (chr 28) with "\c\\"
Message ID:
Yitzchak Scott-Thoennes writes:
> I realise that this behavior is perfectly in accord with perlop/"Gory
> details"/"Finding the end".  That doesn't mean it's not a bug.  It
> just means that if it is a code bug it is also a doc bug.
> IMO, it also contradicts the beginning of perlop/"Gory details":
> >       When presented with something which may have several
> >       different interpretations, Perl uses the principle DWIM
> >       (expanded to Do What I Mean - not what I wrote) to pick up
> >       the most probable interpretation of the source.

This is taken out of context.

> A: "\c\"
> B: "\c\"more string here"
> The question is, is the current incomprehesible behavior of string B
> more important to maintain than following DWIM for "string" A?

Perl uses a very simple rule to find an end of a quoted construct.
All one needs to do is to learn it.

Hope this help,

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