in reply to Re: usage of "my" keyword
in thread usage of "my" keyword
But since $i is not used:
use strict; use warnings; my $number = 8; for (1 .. 20) { print "present value of the number is:", $number++, "\n"; } # or print "present value of the number is:", $number++, "\n" for 1 .. 20;
make the number of iterations clearer and make it clear that the value of the count is unimportant.
|
|---|