Are you sure about the value of $v? Have you printed it out and examined it?
I can't see the point in incrementing a counter variable after the end of the loop, but a more natural way to write your loop in Perl would be:
my $i = 0; for ( 1 .. 100 ) { $i++; # statements $i = 200 if $i == 100 and defined $v; }
Hope this helps!
In reply to Re: Incrementing the loop again.
by 1nickt
in thread Incrementing the loop again.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |