I'm sure that could be improved by an order of magnitude :-) How would you do it?sub wait_for_files { my $files = shift; my %not_changed_yet = %$files; while () { last if (! %not_changed_yet); for my $file (keys(%$files)) { if (-s $files->{$file}) { # file has .prd delete $not_changed_yet{$file}; } } } }
In reply to Waiting For File Extension Changes by Murpher
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |