Use 'perldoc -f -x' to get to the manual page of the filetest operators. To check if for example a file is executable, you would use if (-x $file) { ... }
To check if a file is corrupted there is no easy or generally usable way. If the file is a perl script you could try to check it with 'perl -c'
In reply to Re: detecting file open failure
by jethro
in thread detecting file open failure
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |