Error::Pure::NoDie - Error::Pure module for simple print instead die.
use Error::Pure::NoDie qw(err); err 'This is a fatal error', 'name', 'value';
Process error with messages @messages.
# Pragmas. use strict; use warnings; # Modules. use Error::Pure::NoDie qw(err); # Error. err '1'; # Output: # 1
# Pragmas. use strict; use warnings; # Modules. use Error::Pure::NoDie qw(err); # Error. err '1'; err '2'; # Output: # 1 # 2
# Pragmas. use strict; use warnings; # Modules. use Error::Pure::NoDie qw(err); # Error. err '1', '2', '3'; # Output: # 1
# Pragmas. use strict; use warnings; # Modules. use Dumpvalue; use Error::Pure::NoDie qw(err); use Error::Pure::Utils qw(err_get); # Error in eval. eval { err '1', '2', '3'; }; # Error structure. my @err = err_get(); # Dump. my $dump = Dumpvalue->new; $dump->dumpValues(\@err); # In \@err: # [ # { # '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 {...}', # }, # ], # }, # ],
Exporter, List::MoreUtils, Readonly.
Error::Pure, Error::Pure::AllError, Error::Pure::Die, Error::Pure::Error, Error::Pure::ErrorList, Error::Pure::Output::Text, Error::Pure::Print.
Michal Špaček L<skim@cpan.org> http://skim.cz
BSD license.
0.01
To install Error::Pure::NoDie, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Error::Pure::NoDie
CPAN shell
perl -MCPAN -e shell install Error::Pure::NoDie
For more information on module installation, please visit the detailed CPAN module installation guide.