On Wed, Mar 17, 2004 at 11:22:01AM -0500, Simon Glover wrote: : OK, that suggests that there's a bug somewhere in our string->number : conversion. Either that, or we're going to have to live with the fact : that 1.2 and '1.2' are not the same number (which would suck).
The basic bug has to be that it's using two different routines to do the conversion (or possibly there's one routine that's paying attention to some context it shouldn't be paying attention to--but that seems less likely). I hope this doesn't point to a more general problem. Using different routines to do the same thing for compilation and execution was a bad mistake I made in early Perls, and had to work hard to fix in Perl 5. For instance, all the constant folding in Perl 5 happens by actually running the code in question, not by trying to guess what the run-time system will do, as Perl 4 did. I recommend not remaking my mistakes. Please make different mistakes. :-) Larry