Error::Pure::ErrorList - Error::Pure module with list of errors in one line with informations.
use Error::Pure::ErrorList qw(err); err "This is a fatal error.", "name", "value";
err
err "This is a fatal error.", "name", "value";
Process error with message(s). There is key => value list after first message.
use strict; use warnings; use Error::Pure::ErrorList qw(err); # Error. err '1'; # Output: # #Error [example1.pl:9] 1
use strict; use warnings; use Error::Pure::ErrorList qw(err); # Error. err '1', '2', '3'; # Output: # #Error [example2.pl:9] 1
use strict; use warnings; use English qw(-no_match_vars); use Error::Pure::ErrorList qw(err); # Error. eval { err "1"; }; if ($EVAL_ERROR) { err "2"; } # Output: # #Error [example3.pl:10] 1 # #Error [example3.pl:11] 2
Error::Pure::Utils, Error::Pure::Output::Text, Exporter, List::MoreUtils, Readonly.
Install the Error::Pure modules.
https://github.com/michal-josef-spacek/Error-Pure
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2008-2022 Michal Josef Špaček
BSD 2-Clause License
0.27
To install Error::Pure, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Error::Pure
CPAN shell
perl -MCPAN -e shell install Error::Pure
For more information on module installation, please visit the detailed CPAN module installation guide.