Path: utzoo!utgpu!watserv1!watmath!att!att!emory!samsung!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: How to do alarm()? Message-ID: <10164@jpl-devvax.JPL.NASA.GOV> Date: 30 Oct 90 01:26:32 GMT References: Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 17 In article clipper@chan.csd.uwo.ca (Khun Yee Fung) writes: : I have tried to do Perl's equivalence of alarm() on and off for two : months now. I still don't know a good solution. I tried using : syscall() but did not know how to get result back. I tried putting : alarm() in perl myself but it did not work. Can somebody tell me how I : can do alarm() or equivalent in Perl? Thank you very much. I don't : want to use the usub feature. By popular demand, I'm adding alarm() to Perl in the next patch. After all, the code (what there is of it) is already linked in order to support sleep(). I'm still resisting adding gethostname, since there doesn't seem to be a portable definition of what a host name actually is, where you derive it from and whether it contains the domain. Not to mention the business that gateways can have multiple names, one for each interface... Larry