in reply to Directory Recursion Disorder

You need to prepend $directory when you do your filetest:

if (-d "$directory/$dir")

HTH

Replies are listed 'Best First'.
Re: Re: Directory Recursion Disorder
by Anonymous Monk on Jun 23, 2003 at 07:56 UTC

    yep, that's it. If I only had a dime for everytime I made that mistake... I'd have about 40 cents ;-). Thanks.