in reply to warnings within eval{}
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: warnings within eval{}
by flounder99 (Friar) on Sep 11, 2003 at 17:23 UTC |