houseabsolute / Log-Dispatch

Dispatches messages to one or more outputs
https://metacpan.org/release/Log-Dispatch/
Other
12 stars 29 forks source link

local $?= undef warns in Log::Dispatch::Email::MailSender #57

Closed haarg closed 4 years ago

haarg commented 5 years ago

Log::Dispatch::Email::MailSender localizes $?, but also assigns undef to it. This throws warnings, as $? is expected to always be a number. Replacing it with just local $? with no assignment should fix the issue. Alternatively, assigning 0 should work.