Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
and the second being:2,7,12,17...
my thoughts are:3,8,13,18...
This works fine but I have to look at this expression for every iteration of a while loop so I need some way of retaining the value for each comparison, and it doesn't capture the first 2 or 3 values[(8%3) += 5] [(8%3) += 6]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: What should be an easy math question using %
by Zaxo (Archbishop) on Sep 10, 2003 at 13:12 UTC | |
|
Re: What should be an easy math question using %
by broquaint (Abbot) on Sep 10, 2003 at 13:09 UTC | |
|
Re: What should be an easy math question using %
by Anonymous Monk on Sep 10, 2003 at 12:47 UTC |