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 4, 2019 06:36
Subject:
[perl #134125] Some incomplete expressions treated as valid
Message ID:
rt-4.0.24-28098-1559630197-1590.134125-15-0@perl.org
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?

Tony

---
via perlbug:  queue: perl5 status: new
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