Perl 24 Hour Sleep Clock
I searched a lot for all kinds of sleep and wake solutions to find everything but what I wanted. Hopefully this helps someone else. Problem: based on a 24hour clock, sleep after 5pm and wake (go back to work) at 8am. Or pause during non-work hours. #!/usr/bin/perl use strict; use warnings; my $waketime = 8; # sleep when hour <...