You don't show us what you actually tried. The following works for me:
if (! open INFH, "<$file") { warn "Error opening '$file': $!"; };
In reply to Re: opening missing file inside eval statement
by Corion
in thread opening missing file inside eval statement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |