develooper Front page | perl.perl5.porters | Postings from August 2017

[perl #131725] number parsing

Thread Next
From:
Tony Cook via RT
Date:
August 14, 2017 06:00
Subject:
[perl #131725] number parsing
Message ID:
rt-4.0.24-28210-1502690399-1480.131725-15-0@perl.org
On Wed, 02 Aug 2017 19:15:25 -0700, tonyc wrote:
> On Sun, 09 Jul 2017 05:11:37 -0700, ruud.vantol@booking.com wrote:
> >
> > perl -wE'say 1e--5'
> > -4
> >
> > I think it should die if there is no digit directly after the 'e' and
> > sign.
> 
> The attached prevents consuming the "e-" if there's no digits in the
> exponent.

Applied as adb0f5c46e10ac97fd958f4cd5526ea6d4b058f6.

If it ends up causing lots of CPAN failures it may need to be changed to a deprecation.

Tony

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

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