[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#699608: ITP: libcarp-fix-1-25-perl -- Smooth over incompatible changes in Carp 1.25

Package: wnpp
Severity: wishlist
Owner: Xavier Guimard <x.guimard@free.fr>

Hash: SHA1

* Package name    : libcarp-fix-1-25-perl
  Version         : 1.000001
  Upstream Author : Michael G Schwern <schwern@pobox.com>
* URL             : http://search.cpan.org/~mschwern/Carp-Fix-1_25-1.000001/
* License         : Artistic OR GPL-1+
  Programming Lang: Perl
  Description     : Smooth over incompatible changes in Carp 1.25

Carp 1.25 made a change to its formatting, adding a period at the end
of the message. This can mess up tests and code that are looking for
error messages. Carp::Fix::1_25 makes the message consistent, regardless
of what version of Carp you're using.

Carp::Fix::1_25 exports its own carp functions which change the Carp
message to match the 1.25 version. Carp::Fix::1_25 otherwise acts exactly
like Carp and it will honor Carp global variables|Carp/GLOBAL VARIABLES
such as @CARP_NOT and %Carp::Internal.

Why do this instead of just upgrading Carp? Upgrading Carp would affect
all installed code all at once. You might not be ready for that, or you
might not want your module to foist that on its users. This lets you fix
things one namespace at a time.

Version: GnuPG v1.4.12 (GNU/Linux)


Reply to: