in reply to Waiting For File Extension Changes
You should at least sleep(1) and maybe longer.sub wait_for_files { my $files = shift; my @not_changed_yet = keys %$files; while (@not_changed_yet) { @not_changed_yet = grep { ! -e } @not_changed_yet; sleep(1) if @not_changed_yet; } }
Also, I am testing only the files that are still left.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Waiting For File Extension Changes
by Murpher (Initiate) on May 21, 2003 at 17:44 UTC |