in reply to Re: blessed confusion
in thread blessed confusion
The 'dumpfromstart' is specific to this program, as it uses Data::Dumper to try to dump out data from the starting object and the current if it is different and non-null.my $Devel=1; ... if ($Devel) { use Carp qw(cluck confess); $SIG{__WARN__} = $SIG{__DIE__} = sub { &dumpfromstart; $Carp::CarpLevel=1; confess @_ } }
For me, it's easier if every program starts with initializations like above than having to type invocations on the command line when there are problems.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: blessed confusion
by ikegami (Patriarch) on Sep 09, 2010 at 05:10 UTC | |
by perl-diddler (Chaplain) on Sep 09, 2010 at 21:35 UTC | |
by ikegami (Patriarch) on Sep 09, 2010 at 23:14 UTC |