in reply to detecting file open failure
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'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: detecting file open failure
by Anonymous Monk on Feb 02, 2009 at 16:39 UTC | |
by Anonymous Monk on Feb 03, 2009 at 12:17 UTC | |
by jethro (Monsignor) on Feb 02, 2009 at 19:51 UTC |