Email::Pipemailer::DieHandler - do not die embarassingly if you screw up your pipemailer
version 1.001
#!/usr/bin/perl use Email::Pipemailer::DieHandler -install; use strict; use warnings; # your code goes here
Always put the DieHandler before anything else. You want there to be absolutely no condition that will cause a bounce, right? That includes failure to compile.
This is also legal:
use Email::Pipemailer::DieHandler -install => { logger => sub { ... } };
The error will be passed to the sub.
Ricardo Signes <rjbs@cpan.org>
This software is copyright (c) 2013 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Email::Pipemailer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::Pipemailer
CPAN shell
perl -MCPAN -e shell install Email::Pipemailer
For more information on module installation, please visit the detailed CPAN module installation guide.