in reply to print if warn

I think you might want something like this:

$SIG{__WARN__}= sub { print "\$var= ($var)\n"; warn @_; };
so that you can see the value of some variable other than the one directly causing the warning (which would show as being undef, of course) in the process of trying to debug this warning.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: print if warn
by artist (Parson) on Jan 15, 2002 at 00:18 UTC
    Yep, that's helpful..
    Thanks, tye
    Artist