Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
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);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000688]
help
Chatterbox?
and a soft breeze sighs...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-12-14 17:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (400 votes). Check out past polls.

    Notices?