in reply to Help with module name
How about "every"?
use Every ':threads'; my $process = Every->time( ms => 1000, call => \&do_stuff, args => [] +); $process->start(); #now do_stuff() will get called ever 1000 ms. # .. later... $process->stop();
This would leave open the future possiblity of event- or condition-driven "Every" processes as well, instead of just time-driven.
As for the use statement, you could either do a custom import sub (interface like above) or have Every::threads, Every::fork and so on.
|
|---|