BluGeni has asked for the wisdom of the Perl Monks concerning the following question:
i would rather not do this till 31 any help would be greatly appreciated, thank you!my $daily1=$stop1-$start1; my $busi1=$daily1-$personal1; $dailytotal+=$daily1; $busitotal+=$busi1; $perstotal+=$personal1; if ($stop2 > 0) { $daily2=$stop2-$start2; $busi2=$daily2-$personal2; $dailytotal+=$daily2; $busitotal+=$busi2; $perstotal+=$personal2; } if ($stop3 > 0) { $daily3=$stop3-$start3; $busi3=$daily3-$personal3; $dailytotal+=$daily3; $busitotal+=$busi3; $perstotal+=$personal3; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: New to coding - Looping code to save time
by kennethk (Abbot) on May 11, 2012 at 15:41 UTC | |
|
Re: New to coding - Looping code to save time
by sauoq (Abbot) on May 11, 2012 at 15:04 UTC | |
by BluGeni (Novice) on May 11, 2012 at 15:34 UTC | |
|
Re: New to coding - Looping code to save time
by duelafn (Parson) on May 11, 2012 at 15:50 UTC | |
|
Re: New to coding - Looping code to save time
by BillKSmith (Monsignor) on May 11, 2012 at 20:31 UTC |