From js@biu.icnet.uk Sun Jul 30 11:18:18 CDT 1995 Article: 40309 of comp.lang.perl Path: feenix.metronet.com!uunet!in1.uu.net!news.sprintlink.net!psgrain!nntp.teleport.com!usenet From: js@biu.icnet.uk ( BIU) Newsgroups: comp.lang.perl.announce,comp.lang.perl.misc,comp.lang.perl Subject: Sys::AlarmCall module Followup-To: comp.lang.perl.misc Date: 28 Jul 1995 14:07:18 GMT Organization: Imperial Cancer Research Fund Lines: 28 Approved: merlyn@stonehenge.com (comp.lang.perl.announce) Message-ID: <3vaqum$m1d@maureen.teleport.com> NNTP-Posting-Host: linda.teleport.com X-Disclaimer: The "Approved" header verifies header information for article transmission and does not imply approval of content. Xref: feenix.metronet.com comp.lang.perl.announce:82 comp.lang.perl.misc:2576 comp.lang.perl:40309 The Sys::AlarmCall has had its documentation updated to pod format. The current version, 1.1, is now available at ftp://ftp.icnet.uk/icrf-public/biu/perlmods/AlarmCall-1.1.tar.gz Sys::AlarmCall is a package to handle the logic in timing out calls with alarm() and an ALRM handler, allowing nested calls as well. Timed out calls become straightforward function calls, e.g. $result = func1(@args1); @result = func2(@args2); are changed to timed out calls with use Sys::AlarmCall; $result = alarm_call($timeout1,$func1,@args1); @result = alarm_call($timeout2,$func2,@args2); The Sys::AlarmCall module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. -- Jack js@biu.icnet.uk If you only have a hammer, you tend to see every problem as a nail. -- Maslow