If you were using strict, you could see that $i (in the main program) and $i (in the subroutine) are the same variables, since they're both global. Using strict would prevent this..
Regards,
-octo
In reply to please, PLEASE use strict!
by flocto
in thread Running a subroutine a certain number of times
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |