http://www.perlmonks.org?node_id=1000669


in reply to Determining if I have a particular Friday off

Does not the following do the same?
print +(localtime)[7] / 7 % 2 ? "Free\n" : "Work\n";
(You might need to switch Free and Work).
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ