On Tue, Feb 16, 1999 at 01:36:06PM -0500, Chris Nandor wrote: } At 11.36 -0500 1999.02.16, Simon Barnes wrote: } >Craig Muth sent me the following replacement for sleep() which } >apparently doesn't tie up the Mac. I haven't tested it: } > } >use Mac::Events; } >sub pause { } > my ($time) = @_; } > my $start = time(); } > WaitNextEvent until time > ($start + $time); } >} } } I don't understand this "tie up the Mac" stuff with sleep. Maybe it is } that I have fast machine, but I would use sleep with the Cron I posted, and } saw no noticable slowdown. A very long time ago, around the time of the transition from Perl 4 to Perl 5, using sleep() used to simply hang the Mac (my 68030 Powerbook, at least) for the number of seconds specified. You got no response, not even from the mouse as I recall, until the sleep time expired. Matthias fixed that a long time ago. It should certainly not be a problem with current version of MacPerl. Personally I'd use a Cron clone rather than tie up MacPerl. } } -- } Chris Nandor mailto:pudge@pobox.com http://pudge.net/ } %PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6']) -- Paul Schinder schinder@pobox.com ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch