Sorry. I guess 3-char extensions are pretty pervasive:)
It might be a tad more efficient to use a hash instead of greping an array for the lookup.
sub wait_for_files{
my %not_changed = %{ +shift };
while( sleep 1 and keys %not changed ) {
-e and delete $not_changed{ $_ } for keys %not_changed;
}
}
Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
|