in reply to Re: Can you spot the problem?
in thread Can you spot the problem?

Because zero can have leading zeros?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail

Replies are listed 'Best First'.
Re: Can you spot the problem?
by Abigail-II (Bishop) on Mar 09, 2004 at 13:24 UTC
    Yep, and that's why chanting "don't compare to 0" when someone writes $y == 0 isn't always appropriate. My code would have run fine if the test had been unless $y == 0.

    Abigail