Murpher has asked for the wisdom of the Perl Monks concerning the following question:
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}; } } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Waiting For File Extension Changes
by Thelonius (Priest) on May 21, 2003 at 17:21 UTC | |
by Murpher (Initiate) on May 21, 2003 at 17:44 UTC | |
|
Re: Waiting For File Extension Changes
by BrowserUk (Patriarch) on May 21, 2003 at 16:57 UTC | |
by Murpher (Initiate) on May 21, 2003 at 17:39 UTC | |
by BrowserUk (Patriarch) on May 21, 2003 at 18:58 UTC | |
|
Re: Waiting For File Extension Changes
by halley (Prior) on May 21, 2003 at 17:16 UTC | |
by Murpher (Initiate) on May 21, 2003 at 17:42 UTC | |
|
Re: Waiting For File Extension Changes
by ScooterQ (Pilgrim) on May 22, 2003 at 14:35 UTC |