Just a personal preference on my part: I never put anything other than "$filename: $!\n" in the 'die' string - because it can lead to nonsense messages like this:
test.txt: cannot find input file Is a directory test.txt: cannot find input file Permission denied
etc.
-- Education is not the filling of a pail, but the lighting of a fire. -- W. B. Yeats
In reply to Re^2: opening missing file inside eval statement
by oko1
in thread opening missing file inside eval statement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |