NAME

Error::Pure::Always - Perl module for rewrite die by err from Error::Pure module.

SYNOPSIS

use Error::Pure::Always;

perl -MError::Pure::Always perl_script.pl

EXAMPLE1

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.

EXAMPLE2

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

EXAMPLE3

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

DEPENDENCIES

Error::Pure.

SEE ALSO

Task::Error::Pure

Install the Error::Pure modules.

ACKNOWLEDGMENTS

Thanks for Carp::Always module.

REPOSITORY

https://github.com/michal-josef-spacek/Error-Pure-Always

AUTHOR

Michal Josef Špaček mailto:skim@cpan.org

http://skim.cz

LICENSE AND COPYRIGHT

© 2012-2020 Michal Josef Špaček

BSD 2-Clause License

VERSION

0.07