Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Determining if I have a particular Friday off

by hbm (Hermit)
on Oct 24, 2012 at 18:51 UTC ( #1000688=note: print w/ replies, xml ) Need Help??


in reply to Determining if I have a particular Friday off

You can replace your if-else with printf:

printf "You %s have %s off\n", ($present ? "DO" : "DID") . ($week % 2 ? "" : "N'T"), Date_to_Text(@friday);


Comment on Re: Determining if I have a particular Friday off
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (15)
As of 2014-04-18 16:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (470 votes), past polls