use Carp (); $SIG{__WARN__} = \&Carp::cluck; eval { use warnings; undef =~ m#1#; }
which gives the following output:
Use of uninitialized value in pattern match (m//) at foo line 8.
eval {...} called at foo line 6
which gives you a little better information.
Hope this helps.
Liz
In reply to Re: warnings within eval{}
by liz
in thread warnings within eval{}
by shemp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |