The stupid question is the question not asked | |
PerlMonks |
RE: (jcwren) Re: (2) Tying events to perl warnings and errorsby reptile (Monk) |
on Sep 14, 2000 at 00:23 UTC ( [id://32355]=note: print w/replies, xml ) | Need Help?? |
Localize the handler with a closure, like this:
The variables you want to dump will be in scope of the __WARN__ handler and you can do whatever you like with them.
In Section
Seekers of Perl Wisdom
|
|