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

[perl #134125] Some incomplete expressions treated as valid

From:
Tony Cook via RT
Date:
June 12, 2019 00:18
Subject:
[perl #134125] Some incomplete expressions treated as valid
Message ID:
rt-4.0.24-32058-1560298690-1605.134125-15-0@perl.org
On Mon, 03 Jun 2019 23:36:37 -0700, tonyc wrote:
> On Wed, 22 May 2019 11:33:05 -0700, public@khwilliamson.com wrote:
> > These cases are extracted from [perl #112084]
> > https://rt.perl.org/Ticket/Display.html?id=112084
> > 
> > filed by Tom Christiansen, the rest of which has been fixed or
> > rejected.
> > 
> > % blead -wle 'print 0x - 1'
> > 1
> > % blead -wle 'print 0b - 1'
> > -1
> > % blead -wle 'print 0xx2'
> > 00
> > 
> > Surely that's again an error? Those are the same kind of thing as
> > this:
> > 
> > % blead -wle 'print 3.14e'
> > Bareword found where operator expected at -e line 1, near "3.14e"
> > (Missing operator before e?) Unquoted string "e" may clash with future
> > reserved word at -e line 1. syntax error at -e line 1, near "3.14e "
> > Execution of -e aborted due to compilation errors.
> > Exit 255
> 
> Something like the attached?

Applied as 7259f4194f3131957240f6b3dba47b74f53ac660.

Tony

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



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About