I have a perl script which presents the user with a menu. Every few minutes the user will select an option, a subroutine is called, and then back to the menu. This is all well and good and works fine. I do, however, want to occasionally (maybe once every 5 minutes for example) run a subroutine without any input from the user.
I have looked at a few different timers/schedulers in cpan but I can't seem to find anything that fits this situation in a elegant fashion. I now turn to you all-knowing purveyors of wisdom!
In reply to Run subroutine occasionally by rementis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |