Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Log-Dispatch CPAN distribution.

Report information
The Basics
Id: 39784
Status: resolved
Priority: 0/
Queue: Log-Dispatch

People
Owner: Nobody in particular
Requestors: dapatrick [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.21
Fixed in: 2.22



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