![]() |
|
Think about Loose Coupling | |
PerlMonks |
Re: Undefined value errorby toolic (Bishop) |
on Feb 21, 2018 at 18:25 UTC ( #1209685=note: print w/replies, xml ) | Need Help?? |
I suspect the call to new returns an undefined value because it fails. The Net::SMTP docs state:
On failure undef will be returned and $@ will contain the reason for the failure. You can try to get more information by showing $@:
Is $servername a valid remote host?
In Section
Seekers of Perl Wisdom
|
|