Perl Monk, Perl Meditation | |
PerlMonks |
Re: Sending email, would like a success (or failure) page to displayby choroba (Cardinal) |
on Jun 13, 2015 at 20:04 UTC ( [id://1130316]=note: print w/replies, xml ) | Need Help?? |
As the documentation says, the success object is returned from the sendmail subroutine.
Without success, the subroutine thows an exception, i.e. dies. Therefore, without evaling the subroutine (or using something like Try::Tiny), you don't have to check the success.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
In Section
Seekers of Perl Wisdom
|
|