Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to capture the failure reason of Email::Sender?

by Jenda (Abbot)
on Oct 02, 2018 at 14:56 UTC ( [id://1223412]=note: print w/replies, xml ) Need Help??


in reply to How to capture the failure reason of Email::Sender?

If it throws an exception and you don't catch it, then the program dies. In pure Perl you throw using the die() builtin and catch using the eval BLOCK builtin.

Jenda
Enoch was right!
Enjoy the last years of Rome.

  • Comment on Re: How to capture the failure reason of Email::Sender?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1223412]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2025-12-05 18:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (85 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.