Name : perl-Carp-Always
| |
Version : 0.13
| Vendor : openSUSE
|
Release : bp153.1.1
| Date : 2021-02-15 07:23:00
|
Group : Development/Libraries/Perl
| Source RPM : perl-Carp-Always-0.13-bp153.1.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://bugs_opensuse_org
| |
Summary : Warns and dies noisily with stack backtraces
|
Description :
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; AATTa = AATT$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.
Oh, by the way, \'carp\' and \'croak\' when requiring/using the \'Carp\' module are also made verbose, behaving like \'cluck\' and \'confess\', respectively.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/openSUSE:/Backports:/SLE-15-SP3/step/noarch |