1Carp::Fix::1_25(3)    User Contributed Perl Documentation   Carp::Fix::1_25(3)
2
3
4

NAME

6       Carp::Fix::1_25 - Smooth over incompatible changes in Carp 1.25
7

SYNOPSIS

9           use Carp::Fix::1_25;
10
11           carp  "This will have a period at the end, like die";
12           croak "No matter what version of Carp you have installed";
13

DESCRIPTION

15       Carp 1.25 made a change to its formatting, adding a period at the end
16       of the message.  This can mess up tests and code that are looking for
17       error messages.  Carp::Fix::1_25 makes the message consistent,
18       regardless of what versoin of Carp you're using.
19
20       Carp::Fix::1_25 exports its own carp functions which change the Carp
21       message to match the 1.25 version.  Carp::Fix::1_25 otherwise acts
22       exactly like Carp and it will honor Carp global variables such as
23       @CARP_NOT and %Carp::Internal.
24
25       Why do this instead of just upgrading Carp?  Upgrading Carp would
26       affect all installed code all at once.  You might not be ready for
27       that, or you might not want your module to foist that on its users.
28       This lets you fix things one namespace at a time.
29

KNOWN BUGS

31       The Carp which comes with 5.6.x does not have the necessary features to
32       support this wrapper.
33
35       Copyright 2012 by Michael G Schwern <schwern@pobox.com>.
36
37       This program is free software; you can redistribute it and/or modify it
38       under the same terms as Perl itself.
39
40       See <http://dev.perl.org/licenses/artistic.html>
41

BUGS, ISSUES and FEEDBACK

43       Please report and bugs, issues, feedback, annoyances or kudos to
44       <http://github.com/schwern/Carp-Fix-1_25/issues>.  Don't worry if you
45       don't have a fix.  Don't worry if you don't have all the information.
46       Don't worry if you don't know if it's a bug.  We want to hear from you.
47
48       Report early, report often.
49
50       Source code repository at <http://github.com/schwern/Carp-Fix-1_25/>
51

SEE ALSO

53       Carp
54
55
56
57perl v5.32.0                      2020-07-28                Carp::Fix::1_25(3)
Impressum