You could use
{ local $SIG{__WARN__} = sub { ... }; eval { ... }; }
to trap the warning and do something special with it. However, I can't see that helping with identifying uninitialised values.
There's example code in perlvar: %SIG.
— Ken
In reply to Re^4: determine the variable causing the error: Use of uninitialized value
by kcott
in thread determine the variable causing the error: Use of uninitialized value
by ruqui
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |