Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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
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

    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 scrutinizing the Monastery: (9)
As of 2015-07-08 05:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls