Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up0_ gives double warning #9989
Comments
This comment has been minimized.
This comment has been minimized.
From frank.wiegand@gmail.comThis is a bug report for perl from frank.wiegand@gmail.com, % perl -we 0_ Occurs only with 0_, not 1_ or else. The doubled warning still resides in 5.11.2. Frank Flags: Site configuration information for perl 5.10.1: Configured by Debian Project at Sat Nov 7 22:18:45 UTC 2009. Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Locally applied patches: @INC for perl 5.10.1: Environment for perl 5.10.1: |
This comment has been minimized.
This comment has been minimized.
From p5p@spam.wizbit.beOn Fri Nov 27 06:26:16 2009, frank.wiegand wrote:
What is happening in the code: a) first it checks if the (octal) number begins with '_' In this case there is only one character and this produces the warning The double warning also happens in the following cases: The double warning does not happen for: The reason for this is that the parsing of the exponent is a bit a) it checks if the first character is '_' This also means that: print 5e__-3 is parsed as: 5 - 3 (= 2) and not as The only fix I can currently see is to add another var which contains Best regards, Bram |
This comment has been minimized.
This comment has been minimized.
The RT System itself - Status changed from 'new' to 'open' |
This comment has been minimized.
This comment has been minimized.
From zefram@fysh.orgFixed in 72c80c7. -zefram |
Migrated from rt.perl.org#70878 (status was 'open')
Searchable as RT70878$