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

[perl #118511] Use of bare << to mean <<"" is deprecated - make a hard error

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
June 26, 2013 03:43
Subject:
[perl #118511] Use of bare << to mean <<"" is deprecated - make a hard error
Message ID:
rt-3.6.HEAD-2552-1372218212-1945.118511-15-0@perl.org
On Tue Jun 25 18:12:46 2013, davidnicol@gmail.com wrote:
> On Mon, Jun 17, 2013 at 8:33 AM, Father Chrysostomos
> >
> > I would like to see that *un*deprecated.  I see no reason why that
> > syntax should cause any problems.  It doesn’t make anything less
> > ambiguous to remove it.  (On top of that, it looks nice!)
> >
> 
> 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


-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=118511

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