in reply to Re: Unsupported function alarm
in thread Unsupported function alarm

I think it's worse than that. Alarm is one of the functions that isn't implemented even in the most current version of Perlwin32. http://www.perl.com/doc/FAQs/nt/perlwin32faq5.html

Hays

Replies are listed 'Best First'.
Re^3: Unsupported function alarm
by Corion (Patriarch) on Sep 20, 2006 at 21:11 UTC

    That's not entirely true:

    C:\>perl -le "$SIG{ALRM}=sub{print'Hello'};alarm(2);sleep 4;print 'Don +e.'" Hello Done. C:\>perl -v This is perl, v5.8.5 built for MSWin32-x86-multi-thread Copyright 1987-2004, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using `man perl' or `perldoc perl'. If you have access to + the Internet, point your browser at http://www.perl.com/, the Perl Home Pa +ge.
Re^3: Unsupported function alarm
by ikegami (Patriarch) on Sep 20, 2006 at 23:02 UTC
    That must be very outdated. alarm interrupted sleep for me in ActivePerl 5.8.0 and 5.8.8 (but not in 5.6.1) on WinXP.
Re^3: Unsupported function alarm
by jdtoronto (Prior) on Sep 21, 2006 at 16:34 UTC
    That's a pretty old FAQ, alarm has been in ActiveState Perl since 5.8.

    jdtoronto

    Update Then I look further down and see ikegami already said that!

      From ActivePerl documentation it seems alarm is not yet support Certain functions don't seem to work on ActivePerl. There are several functions that are unimplemented in the ActivePerl system. Here is a complete list of unimplemented functions: Functions for processes and process groups alarm(), getpgrp(), getppid(), getpriority(), setpgrp(), setpriority() can someone please confirm if it is supported