JupiterHost.Net wrote:
Assume I have a script that will run for 10 seconds.
Is it possible to have a function executed every 2 seconds?
I know it sounds weird but how would one go about something like that?
http://search.cpan.org/~roland/Schedule-Cron-0.05/Cron.pm
any such beast?
One halfway semi practical application I could see is, say you have a long running app that prints the date out every so often ( I realize they could use localtime each time but hear me out...
http://search.cpan.org/modlist/Server_Daemon_Utilities
http://search.cpan.org/modlist/Control_Flow_Utilitie
Maybe I could just point out other sections of CPAN? Have you seen the scripts which actually built CPAN?
--
_Sx_ http://youve-reached-the.endoftheinternet.org/ _________________________________________________________________
perl -MMIME::Base64 -e 'print decode_base64("SnVzdCBvbmUgbW9yZSBQb3N0Zml4IDIuMnggU25hcHNob3QgRmlsdGVyLCBwbGVhc2UK");'
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>