On Wed, Oct 08, 2003 at 04:39:31PM -0000, wasquith@red1ast.cr.usgs.gov (via RT) wrote: > =head1 BUG REPORT -- INTEGER MATH OCCURRING WHEN NOT EXPECTED > > I have stumbled onto strange float/integer/string behavior on Perl5.8.0 and > Perl5.8.1 that did not exist in prior Perls. I have read (see REFERENCES) > that Numbers are better behaved in Perl5.8.+ and math is no longer purely > floating point. I am certain that this change has a weakness. Thanks for the report. Its a bit difficult to make direct comments without the problem being reproducabel here. However, if you have the ability to make your code at the bottom of your email fail, would it be possible for you to run it with the following modification: change this line: $val -= $offset; # The way that I think Perl should be written. to be something like: use Devel::Peek; warn "-----\n"; Dump($val); Dump($offset); $val -= $offset; # The way that I think Perl should be written. Dump($val); Dump($offset); So that we can see the internal representations of the variables before and after the subtraction? Thanks, Dave. -- Thank God I'm an atheist.....Thread Previous | Thread Next