in reply to Re: -e falling through
in thread -e falling through

It's only an error if -e returned undef.

defined(my $exists = -e $file) or die("Error checking if \"$file\" exists: $! $^E\n"); print("$file ", ($exists ? "exists" : "doesn't exist"), "\n");