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");
In reply to Re^2: -e falling through
by ikegami
in thread -e falling through
by slinky66
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |