Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: tracing eval

by Ryszard (Priest)
on Jan 15, 2003 at 07:25 UTC ( [id://227074]=note: print w/replies, xml ) Need Help??


in reply to tracing eval

I use this technique to ferret out these errors:
$SIG{__WARN__} = sub { warn @_; $i=0; while(($pack, $file, $line, $subname, $hashargs, $wantary) = caller($i++)){ print STDERR " WARN pack='$pack' file='$file' line='$line' ", "subname='$subname'\n"; } }

I cant claim authorship of the code, I found it by googling the newsgroups...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://227074]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-04-18 16:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found