in reply to Sanity Check: Debugging Help Needed!

if (-d !$dir) {doesn't make much sense. You're asking if the negation of a string is a directory. You want

if (! -d $dir) {
or use unless as suggested above.

Replies are listed 'Best First'.
Re: Re: Sanity Check: Debugging Help Needed!
by Anonymous Monk on Aug 27, 2003 at 17:57 UTC

    Thank-you, unfortunately that did not fix the other problem, but I have corrected this error.