Error::Pure::ANSIColor::Die - Error::Pure module with classic die.
use Error::Pure::ANSIColor::Die qw(err); err 'This is a fatal error', 'name', 'value';
Process error with messages @messages.
use strict; use warnings; use Error::Pure::ANSIColor::Die qw(err); # Error. err '1'; # Output: # 1 at example1.pl line 9.
use strict; use warnings; use Error::Pure::ANSIColor::Die qw(err); # Error. err '1', '2', '3'; # Output: # 1 at example2.pl line 9.
use strict; use warnings; use Dumpvalue; use Error::Pure::ANSIColor::Die qw(err); use Error::Pure::Utils qw(err_get); # Error in eval. eval { err '1', '2', '3'; }; # Error structure. my $err_ar = err_get(); # Dump. my $dump = Dumpvalue->new; $dump->dumpValues($err_ar); # In $err_ar: # [ # { # 'msg' => [ # '1', # '2', # '3', # ], # 'stack' => [ # { # 'args' => '(1)', # 'class' => 'main', # 'line' => '9', # 'prog' => 'script.pl', # 'sub' => 'err', # }, # { # 'args' => '', # 'class' => 'main', # 'line' => '9', # 'prog' => 'script.pl', # 'sub' => 'eval {...}', # }, # ], # }, # ],
Error::Pure::Output::ANSIColor, Error::Pure::Utils, Exporter, List::MoreUtils, Readonly.
Install the Error::Pure modules.
https://github.com/tupinek/Error-Pure-ANSIColor
Michal Špaček mailto:skim@cpan.org
http://skim.cz
© 2013-2017 Michal Špaček BSD 2-Clause License
0.02
To install Error::Pure::ANSIColor, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Error::Pure::ANSIColor
CPAN shell
perl -MCPAN -e shell install Error::Pure::ANSIColor
For more information on module installation, please visit the detailed CPAN module installation guide.