Error::Pure::Always - Perl module for rewrite die by err from Error::Pure module.
use Error::Pure::Always; perl -MError::Pure::Always perl_script.pl
use strict; use warnings; use Error::Pure::Always; # Set env error type. $ENV{'ERROR_PURE_TYPE'} = 'Die'; # Error. die '1'; # Output: # 1 at example1.pl line 9.
use strict; use warnings; use Error::Pure::Always; # Set env error type. $ENV{'ERROR_PURE_TYPE'} = 'ErrorList'; # Error. die '1'; # Output something like: # #Error [path_to_script:12] 1
use strict; use warnings; use Error::Pure::Always; # Set error type. $Error::Pure::TYPE = 'AllError'; # Error. die '1'; # Output something like: # ERROR: 1 # main err path_to_script 12
Error::Pure.
Install the Error::Pure modules.
Thanks for Carp::Always module.
https://github.com/michal-josef-spacek/Error-Pure-Always
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2012-2020 Michal Josef Špaček
BSD 2-Clause License
0.07
To install Error::Pure::Always, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Error::Pure::Always
CPAN shell
perl -MCPAN -e shell install Error::Pure::Always
For more information on module installation, please visit the detailed CPAN module installation guide.