Help for this page
my $loopcount = 0; 1 while (! $process->Wait(1000) and ! -e $the_file and $loopcount++ < +$timeout); ... } else { ... it did its work }