in reply to A file in a directory
With the file test operators you can see if it exists, and access various properties; stat can be used to do the same. Note that the -X operators don't produce an error in case the file doesn't exist. Instead, they tend to return undef. stat returns an empty list.
|
|---|