----- Original Message ----- 
From: Chris Rodriguez 
To: perl-win32-users@listserv.ActiveState.com 
Sent: Saturday, January 27, 2007 8:35 AM
Subject: checking for infinite loops


>  The alarm function seemed to be the way to go - but not with Windows. 

The alarm() function now works on Windows:

C:\_32\pscrpt>type try.pl
use warnings;
use strict;

alarm(2);

while(1) {}

C:\_32\pscrpt>perl try.pl
Terminating on signal SIGALRM(14)

C:\_32\pscrpt>

Cheers,
Rob
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to