in reply to Alternatives to Mixing Alarm and Sleep

is there a good CPAN module that handles this?

Yes, they are called event-loop systems. See POE or Glib

See Roll your own Event-loop for an example of Glib. POE comes with a cookbook of examples. You want to setup a timer.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku
  • Comment on Re: Alternatives to Mixing Alarm and Sleep