-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
octal version number funny parsing in use #9994
Comments
From zefram@fysh.orgCreated by zefram@fysh.org$ perl -lwe 'use Time::HiRes 01.99; print "ok"' This is a funny result considering that Time::HiRes is at version 1.9719 $ perl -lwe 'use Time::HiRes 1.99; print "ok"' Apparently, in "01.99", the "01" is being interpreted as an octal number, Perl Info
|
From @davidnicolOn Mon, Nov 30, 2009 at 11:46 AM, Zefram <perlbug-followup@perl.org> wrote:
how about warning whenever dot follows an octal constant? where would This has not been tested: Inline Patchdiff --git a/toke.c b/toke.c
index d498a34..f5f95f5 100644
--- a/toke.c
+++ b/toke.c
@@ -2793,7 +2793,7 @@ S_scan_const(pTHX_ char *start)
goto default_action;
}
- /* eg. \132 indicates the octal constant 0x132 */
+ /* eg. \132 indicates the octal constant 0132 aka
switch (*s) { + /* warning for bug #70938 */ -- |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#70938 (status was 'open')
Searchable as RT70938$
The text was updated successfully, but these errors were encountered: