healingtao has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I have a simple question. I have a variable say 'day' This variable is increasing daily by one and I need the following logic: If day = 3 or 6 or 9 or 12 etc.. then execute some logic Can I just use a mod for this if (day%3) = 0 do something Thanks
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: modulus question
by GrandFather (Saint) on Feb 03, 2015 at 05:48 UTC | |
|
Re: modulus question
by vinoth.ree (Monsignor) on Feb 03, 2015 at 05:50 UTC | |
by GrandFather (Saint) on Feb 03, 2015 at 06:47 UTC | |
by vinoth.ree (Monsignor) on Feb 03, 2015 at 08:12 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |