I think you should store the filename in a global variable, and override @SIG{qw{__DIE__ __WARN__}} so that it adds the filename to the error message.
In reply to Re: Forcing perl to print filenames instead
by ambrus
in thread Forcing perl to print filenames instead
by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |