And for "every third",my $var; while (...) { ++$var; ... }
my $var; while (...) { ++$var; ... if ($var % 3 == 0) { # Stuff for every third pass. ... } }
In reply to Re: Auto Incrementing Variable in While Statement
by ikegami
in thread Auto Incrementing Variable in While Statement
by htmanning
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |