in reply to Re^2: Determining if I have a particular Friday off
in thread Determining if I have a particular Friday off
my $mod = (Weeks_in_Year($ARGV[1]) eq 52) ? 2 : 1; ... ($present ? "DO" : "DID") . ($week % $mod ? "" : "N'T")
Hmmm. When $mod is 1, % is always zero - and you "DON'T/DIDN'T" have off.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Determining if I have a particular Friday off
by thmsdrew (Scribe) on Nov 06, 2012 at 17:43 UTC |
In Section
Cool Uses for Perl