in reply to Error handling - how much/where/how?
in addition to what salva and Ultra stated:
- you might want to take a look at Carp.pm
- there's a CORE function named caller.
- you can install hooks for every signal, even $SIG{__DIE__}.
e.g.:
- you might want to take a look at Carp.pm
- there's a CORE function named caller.
- you can install hooks for every signal, even $SIG{__DIE__}.
e.g.:
local $SIG{__DIE__} = sub { my $i = -1; while (my @c= caller(++$i)) { print " at $c[1] line $[2]\n"; } };
language is a virus from outer space.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Error handling - how much/where/how? (a plug for Devel::SimpleTrace)
by grinder (Bishop) on Jun 14, 2005 at 07:50 UTC | |
by salva (Canon) on Jun 14, 2005 at 08:37 UTC |
In Section
Seekers of Perl Wisdom