No such thing as a small change | |
PerlMonks |
Re: Incrementing the loop again.by Laurent_R (Canon) |
on Mar 12, 2016 at 20:10 UTC ( [id://1157564]=note: print w/replies, xml ) | Need Help?? |
I do not see the point of modifying $i when you reach the end of the loop (and it is a bit awkward and confusing), but if you do it, it works:
So, I would assume that, probably, $v is not defined in your case. Having said that, you probably don't really want to use a C-style for loop for that, but rather a while loop.
In Section
Seekers of Perl Wisdom
|
|