On Monday, February 4, 2002, at 06:57 PM, Timothy Johnson wrote:
> > Did you chdir to the directory? Otherwise your script might be > checking the > wrong directory. > > opendir(DIR,"/mydir"); > @array = readdir(DIR); > chdir "/mydir"; > foreach $dup (@array){ > (-d $dup) ? print "yes: $dup \n": print "no: $dup \n"; > } > > well the return value of @array prints all the files in the desired directory, doesn't that mean that is the directory that the loop is operating on and -d is checking? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]