How to Install and Uninstall perl-Devel-Confess Package on openSUSE Leap
Last updated: November 08,2024
1. Install "perl-Devel-Confess" package
This tutorial shows how to install perl-Devel-Confess on openSUSE Leap
$
sudo zypper refresh
Copied
$
sudo zypper install
perl-Devel-Confess
Copied
2. Uninstall "perl-Devel-Confess" package
This is a short guide on how to uninstall perl-Devel-Confess on openSUSE Leap:
$
sudo zypper remove
perl-Devel-Confess
Copied
3. Information about the perl-Devel-Confess package on openSUSE Leap
Information for package perl-Devel-Confess:
-------------------------------------------
Repository : Main Repository
Name : perl-Devel-Confess
Version : 0.009004-bp155.2.10
Arch : noarch
Vendor : openSUSE
Installed Size : 45.6 KiB
Installed : No
Status : not installed
Source package : perl-Devel-Confess-0.009004-bp155.2.10.src
Upstream URL : http://search.cpan.org/dist/Devel-Confess/
Summary : Include stack traces on all warnings and errors
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.
Unlike other similar modules (e.g. Carp::Always), stack traces will also be
included when exception objects are thrown.
The stack traces are generated using Carp, and will work for all types of
errors. Carp's 'carp' and 'croak' functions will also be made to include
stack traces.
$ perl -d:Confess -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 -d:Confess -w -e 'sub f { $a = shift; @a = @$a };' \
-e 'sub g { f(undef) }; g'
Use of uninitialized value $a in array dereference at -e line 1.
main::f(undef) called at -e line 2
main::g() called at -e line 2
Internally, this is implemented with $SIG{__WARN__} and $SIG{__DIE__}
hooks.
Stack traces are also included if raw non-object references are thrown.
This module is compatible with all perl versions back to 5.6.2, without
additional prerequisites. It contains workarounds for a number of bugs in
the perl interpreter, some of which effect comparatively simpler modules,
like Carp::Always.
-------------------------------------------
Repository : Main Repository
Name : perl-Devel-Confess
Version : 0.009004-bp155.2.10
Arch : noarch
Vendor : openSUSE
Installed Size : 45.6 KiB
Installed : No
Status : not installed
Source package : perl-Devel-Confess-0.009004-bp155.2.10.src
Upstream URL : http://search.cpan.org/dist/Devel-Confess/
Summary : Include stack traces on all warnings and errors
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.
Unlike other similar modules (e.g. Carp::Always), stack traces will also be
included when exception objects are thrown.
The stack traces are generated using Carp, and will work for all types of
errors. Carp's 'carp' and 'croak' functions will also be made to include
stack traces.
$ perl -d:Confess -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 -d:Confess -w -e 'sub f { $a = shift; @a = @$a };' \
-e 'sub g { f(undef) }; g'
Use of uninitialized value $a in array dereference at -e line 1.
main::f(undef) called at -e line 2
main::g() called at -e line 2
Internally, this is implemented with $SIG{__WARN__} and $SIG{__DIE__}
hooks.
Stack traces are also included if raw non-object references are thrown.
This module is compatible with all perl versions back to 5.6.2, without
additional prerequisites. It contains workarounds for a number of bugs in
the perl interpreter, some of which effect comparatively simpler modules,
like Carp::Always.