Subject: | Small glitch in error codepath |
Mail::Mailer
sub new {
my($class, $type, @args) = @_;
$type = $MailerType unless $type;
croak "Mailer '$type' not known, please specify correct type"
unless $type;
^^^^^^^^
my $exe = $Mailers{$type};
This code trigger error only if $type isn't true.