in reply to Re: Waiting For File Extension Changes
in thread Waiting For File Extension Changes

I appreciate your suggestion but I'm on Solaris. Thanks anyway.
  • Comment on Re: Re: Waiting For File Extension Changes

Replies are listed 'Best First'.
Re: Re: Re: Waiting For File Extension Changes
by BrowserUk (Patriarch) on May 21, 2003 at 18:58 UTC

    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