You only get one alarm timer, so you're going to have to set up a scheduler of some kind. Decide which reaper is to be called next and when, then set alarm to that interval. A global variable holding a code reference to the next reaper sub would be handy.
A priority queue, aka heap, is a handy data structure for that kind of thing.
After Compline,
Zaxo
In reply to Re: Multialarm loop
by Zaxo
in thread Multialarm loop
by Excalibor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |