in reply to Opening a File If It Exists

You could use something like
if (open COULDBE, "filename"){ #process here close COULDBE; }
which will silently continue if the file can't be opened for whatever reason (doesn't exist, permissions, etc).