Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
As a test script and it prints out every single number as far as I can see.my $cnt = 0; for (0 .. 99999) { $cnt++; if ($cnt%100) { print "$cnt\n"; } }
Any ideas?... 32287 32288 32289 32291 ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl modulus not working
by blue_cowdawg (Monsignor) on Aug 22, 2011 at 13:47 UTC | |
|
Re: Perl modulus not working
by BrowserUk (Patriarch) on Aug 22, 2011 at 13:57 UTC | |
|
Re: Perl modulus not working
by rovf (Priest) on Aug 22, 2011 at 14:25 UTC | |
|
Re: Perl modulus not working
by ricDeez (Scribe) on Aug 22, 2011 at 17:31 UTC | |
|
Re: Perl modulus not working
by locked_user sundialsvc4 (Abbot) on Aug 22, 2011 at 14:07 UTC |