Package Info

perl-Carp-Always


Warns and dies noisily with stack backtraces


Development/Libraries/Perl

This module is meant as a debugging aid. It can be used to make a script complain loudly with stack backtraces when warn()ing or die()ing.

Here are how stack backtraces produced by this module looks:

$ perl -MCarp::Always -e 'sub f { die "arghh" }; sub g { f }; g' arghh at -e line 1 main::f() called at -e line 1 main::g() called at -e line 1

$ perl -MCarp::Always -w -e 'sub f { $a = shift; @a = @$a };'
-e 'sub g { f(undef) }; g' Use of uninitialized value in array dereference at -e line 1 main::f('undef') called at -e line 2 main::g() called at -e line 2

In the implementation, the Carp module does the heavy work, through 'longmess()'. The actual implementation sets the signal hooks $SIG{WARN} and $SIG{DIE} to emit the stack backtraces.

Also, all uses of 'carp' and 'croak' are made verbose, behaving like 'cluck' and 'confess'.


License: Artistic-1.0 OR GPL-1.0-or-later
URL: http://search.cpan.org/dist/Carp-Always/

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.16-bp155.2.12 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Carp-Always
0.16-bp154.1.40 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Carp-Always
0.13-bp153.1.15 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Carp-Always
0.13-bp152.3.15 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Carp-Always
0.13-bp151.3.1 info GA Release 2019-07-17 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Carp-Always
0.13-bp151.2.13 info GA Release 2019-05-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Carp-Always
0.13-bp150.2.4 info GA Release 2018-07-30 15
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Carp-Always