I have a Perl program that regularly checks for the presence of a new file in a directory held on a network drive. This program works well until the network drive is temporally unavailable. I would like a method that will somehow check to see if the network drive is available first and then check for the file. I want the program to continue running without throwing up an error message. It has been suggested that I look up the following:
IO::Socket's is_connected and IO::Select's can_read, can_write, and has_exception
Enlightenment welcomed.