Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Determining if I have a particular Friday off

by hbm (Hermit)
on Nov 06, 2012 at 16:55 UTC ( #1002523=note: print w/ replies, xml ) Need Help??


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.


Comment on Re^3: Determining if I have a particular Friday off
Download Code
Re^4: Determining if I have a particular Friday off
by thmsdrew (Scribe) on Nov 06, 2012 at 17:43 UTC

    Hmm yeah, I wasn't thinking. This is a weird case, I'll have to think more about it.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1002523]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2014-11-21 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (104 votes), past polls