in reply to Running a subroutine a certain number of times
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Please, please don't treat use strict as a magic wand that solves all problems.
by Abigail-II (Bishop) on Aug 05, 2002 at 14:30 UTC | |
by dreadpiratepeter (Priest) on Aug 05, 2002 at 14:45 UTC | |
by flocto (Pilgrim) on Aug 05, 2002 at 15:04 UTC |