in reply to Forcing perl to print filenames instead

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.

Replies are listed 'Best First'.
Re: Re: Forcing perl to print filenames instead
by seaver (Pilgrim) on Apr 08, 2004 at 18:29 UTC
    Ambrus

    thanks:

    This is definitely what I'm looking for, a simple override.

    Cheers
    Sam