This will only print when $counter is even...my $counter = 0; while(1) { print "Got an even number\n" if(($counter++%2) == 0); }
In reply to Re: a few basic questions
by ozone
in thread a few basic questions
by maddfisherman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |