in reply to Using the alarm function in ActiveState Perl 5.8 for FileWatch
foreach my $i ( 1..10 ) { # look for file, if it's there quit happily sleep 6; # wait 6 seconds and try again } # perhaps make one final check # quit unhappily [download]