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

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