/
README
81 lines (54 loc) · 1.29 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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.08