in reply to Using the alarm function in ActiveState Perl 5.8 for FileWatch

Perhaps you could use a foreach loop with a sleep:
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
Phil
  • Comment on Re: Using the alarm function in ActiveState Perl 5.8 for FileWatch
  • Download Code