Hi Terry, It's your -d test that's failing. readdir() returns names without paths. So -d $file looks in the current directory, not in $basedir. Fix the problem with -d "$basedir/$file" I didn't check the whole script, so I can't gaurantee there are no other bugs :=) HTH, Robert Friberg, Ensofus AB _______________________________________________ Perl-Win32-Web mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
- opendir & readdir problems Terry Fowler
- Re: opendir & readdir problems Robert Friberg
- Re: opendir & readdir problems $Bill Luebkert