Died - Auto create blessed exceptions
package OldCode; use Died; sub inuse { eval { maintenace(); }; if ($@) { die; } } sub maintenace { die("Use the source!\n"); } package main; use Died; use English; use Modern::Perl; eval { OldCode::inuse; }; if ($EVAL_ERROR) { say($EVAL_ERROR->file, "\t", $EVAL_ERROR->line); }
Died will auto create exception handling objects.
The goal is to make it easer to use with maintenance code.
To install Died, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Died
CPAN shell
perl -MCPAN -e shell install Died
For more information on module installation, please visit the detailed CPAN module installation guide.