http://www.perlmonks.org?node_id=406070


in reply to Re^3: simple timeout
in thread simple timeout

Seems that alarm is not working on ActiveState (http://aspn.activestate.com/ASPN/docs/ActivePerl/faq/Windows/ActivePerl-Winfaq5.html).

I'd advise you to have a look at Time::hires.

HTH

--
zejames

Replies are listed 'Best First'.
Re^5: simple timeout
by disciple01 (Novice) on Nov 08, 2004 at 16:49 UTC
    Tried using Time::Hires;

    use Time::HiRes qw (ualarm setitimer); ualarm(5000); exit;

    returns "ualarm is not a valid Time::HiRes macro at C:/Perl/lib/Time/HiRes.pm line 27."

    Not having much luck here. =(