in reply to (Ovid) Re(3): How do I write NT perl script to search mult. dirs and output to a file?
in thread How do I write NT perl script to search mult. dirs and output to a file?

Is there a way in Perl to "test" permissions or if the directory doesn't exist.

Here are the errors that I keep getting when running on my network drives.

Can't open k:/users/testuser: Bad file descriptor
Can't open k:/users/testuser2: Bad file descriptor
Can't open k:/users/testuser3/CHECK REQS: No such file or directory
Can't open k:/users/testuser3/LABELS: No such file or directory
Can't open k:/users/testuser3/MEMOS: No such file or directory
Can't open k:/users/testuser4/BIO: No such file or directory

The first error is bad file descriptor- Is that a permissions thing?

The second error is no such file or directory- Is there a way to skip the directory if it doesn't exist? This slows down my script. Would creating a hash and reading the index alleviate this?

Any input would be appreciated.

  • Comment on Re: (Ovid) Re(3): How do I write NT perl script to search mult. dirs and output to a file?