Subject: | Using the "Error" module is no longer recommended |
Date: | Sun, 16 Jun 2013 13:00:45 -0400 |
To: | bug-Mail-SPF [...] rt.cpan.org |
From: | Peter Baranyi <peter.baranyi [...] gmail.com> |
Hi,
if you check the Error module, it states at the beginning that Using
the "Error" module is no longer recommended due to the black-magical
nature of its syntactic sugar, which often tends to break. Its
maintainers have stopped actively writing code that uses it, and
discourage people from doing so.
Please consider using something else.
When I use Mail::SPF, I get multiple exceptions although everything is
working fine. If I enable a simple die signal checking,
$SIG{__DIE__} = sub {
warn "Fatal exception\n";
};
I see the message printed 6 times! Unfortunately for me I am using the
Carp module with cluck, and each time I would get like 20 pages of
tracebacks for each exception! How can I avoid this, without disabling
the die catch? I tried putting no Carp; where Mail::SPF is used but it
helped only the first time and I get the same traceback for
consecutive calls.
regards,
Peter
Message body is not shown because sender requested not to inline it.