Subject: | Log::Dispatch::Email::MailSend uses warnings pragma incorrectly |
During a call to Log::Dispatch::Email::MailSend->send_email, if the
eval() call at line 28 results in population of $@, an error such as
package 'Log::Dispatch::Email::MailSend' not registered for warnings at
/loader/0x81eee00/Log/Dispatch/Email/MailSend.pm line 40
is thrown due to to incorrect use of the warnings pragma.
Please see attached patch.
Thanks for your hard work. This modules is great!
Best,
Darian, using v5.8.8 built for i486-linux-gnu-thread-multi
Subject: | dapatrick_Log-Dispatch-2.21_warnings_register.patch |
Only in Log-Dispatch-2.21: blib
Only in Log-Dispatch-2.21: _build
Only in Log-Dispatch-2.21: Build
diff -u -r Log-Dispatch-2.21.orig/lib/Log/Dispatch/Email/MailSend.pm Log-Dispatch-2.21/lib/Log/Dispatch/Email/MailSend.pm
--- Log-Dispatch-2.21.orig/lib/Log/Dispatch/Email/MailSend.pm 2008-02-06 18:18:42.000000000 -0500
+++ Log-Dispatch-2.21/lib/Log/Dispatch/Email/MailSend.pm 2008-10-02 16:53:32.000000000 -0400
@@ -1,7 +1,7 @@
package Log::Dispatch::Email::MailSend;
use strict;
-use warnings;
+use warnings::register;
use Log::Dispatch::Email;
Only in Log-Dispatch-2.21: Log-Dispatch-2.21-i486-linux-gnu-thread-multi-5.8.8.par