I think you might want something like this:
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")$SIG{__WARN__}= sub { print "\$var= ($var)\n"; warn @_; };
In reply to (tye)Re: print if warn
by tye
in thread print if warn
by artist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |