develooper Front page | perl.perl5.porters | Postings from June 2013

Re: [perl #118511] Use of bare << to mean <<"" is deprecated - make ahard error

Thread Previous | Thread Next
From:
David Nicol
Date:
June 27, 2013 19:49
Subject:
Re: [perl #118511] Use of bare << to mean <<"" is deprecated - make ahard error
Message ID:
CAFwScO-SE_2GZ327QpVArbyv=Rd8cDCzETQx=6bjFqmSqHqXHg@mail.gmail.com
On Tue, Jun 25, 2013 at 10:43 PM, Father Chrysostomos via RT <
perlbug-followup@perl.org> wrote:

> On Tue Jun 25 18:12:46 2013, davidnicol@gmail.com wrote:
> >
> > Me too! And while we're on the subject, it should allow space between the
> > angle brackets and the bareword terminator.
>
> That would break << cmp <<, which currently works:
>
> $ perl  -Xle 'print << cmp <<; ' -ea -e '' -eb -e '' -e ''
> -1
> $ perl  -Xle 'print << cmp <<; ' -eb -e '' -ea -e '' -e ''
> 1
>
> I think that's what you said the last time, too, so I had the patch
special-case all
the bareword infix operators, including eq, lt, gt, ge, le as well as cmp.

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