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.
Log::Dispatch::Email::MailSender localizes
$?
, but also assignsundef
to it. This throws warnings, as$?
is expected to always be a number. Replacing it with justlocal $?
with no assignment should fix the issue. Alternatively, assigning 0 should work.