in reply to Re: file globbing in a nested while loop
in thread file globbing in a nested while loop

Thanks, and ditto to busunsl. That's certainly solved the problem - I can write my script now, and have re-learnt the ever valuable lesson that time spent researching CPAN is rarely time wasted. But I'd still be very interested if anyone can shed light on why my own attempt didn't work. Is the while loop not restarting? And if so why not?

§ George Sherston

Replies are listed 'Best First'.
Re: Re: Re: file globbing in a nested while loop
by busunsl (Vicar) on Oct 05, 2001 at 17:08 UTC
    If this runs on Unix, it might be you are hitting the '.' directory.

    You would be looping on that till eternity.

      Normal globbing doesn't return the dot files.