-
Notifications
You must be signed in to change notification settings - Fork 577
0e0 not recognized as valid scientific notation by perl #404
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
Comments
From [email protected] $ perl -we '$a = 0e0' Both with perl5.004_04 and perl5.005_60. Perhaps it is trying to parse it John. |
From [Unknown Contact. See original ticket]This patch makes 0e0 scan as 'decimal' (thus as 0.0e0 would) /spider Inline Patch--- toke.c.prev Thu Aug 19 16:22:48 1999
+++ toke.c Fri Aug 20 11:45:14 1999
@@ -6398,7 +6401,7 @@ Perl_scan_num(pTHX_ char *start)
s += 2;
}
/* check for a decimal in disguise */
- else if (s[1] == '.')
+ else if (strchr(".Ee", s[1]))
goto decimal;
/* so it must be octal */
else |
From [Unknown Contact. See original ticket]On Fri, 20 Aug 1999, Spider Boardman wrote:
[patch deleted] Wow, that was fast. Talk about service! Thanks. John. |
From [Unknown Contact. See original ticket]On Fri, 20 Aug 1999, Spider Boardman wrote:
Thanks. (Though perhaps we should use (s[1] == '.' || s[1] == 'e' || s[1] == 'E') John. |
From [Unknown Contact. See original ticket]On Fri, 20 Aug 1999 12:06:46 -0400 (EDT), "John L. Allen" wrote (in part): John> (Though perhaps we should use (s[1] == '.' || s[1] == 'e' With the compiler I'm using, it's not measurable (strchr is /spider |
Migrated from rt.perl.org#1239 (status was 'resolved')
Searchable as RT1239$
The text was updated successfully, but these errors were encountered: