Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^2: Scheduling Perl Tasksby marioroy (Prior) |
on Mar 23, 2017 at 23:24 UTC ( [id://1185696]=note: print w/replies, xml ) | Need Help?? |
That's a good point Corion regarding locking $0. I updated the code by not appending the suffix ".lock" when path is given. The lock is released automatically upon termination of the script.
Another way, with the timewait method.
The module is beneficial regarding supporting threads and processes. I will make time to complete it and subsequently a release for CPAN. Regards, Mario Edit: Added timedwait example.
In Section
Seekers of Perl Wisdom
|
|