Only in the case of the odometer 'turning over' will $wheel go negative. When $wheel is -1, $odometer[ $wheel ] will be the same as $odometer[ $#odometer ], which will have already been set to 0.
... of course relying on this in your code will piss off your maintainers.
TJD
In reply to Re^2: Untillian Headache or about the semantic of until
by Anonymous Monk
in thread Untillian Headache or about the semantic of until
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |