| 1 |
Carp-Always version 0.16 |
| 2 |
======================== |
| 3 |
|
| 4 |
Carp::Always can be used to make a script complain loudly |
| 5 |
with stack traces when warn()ing or die()ing. |
| 6 |
|
| 7 |
perl -MCarp::Always script.pl |
| 8 |
|
| 9 |
|
| 10 |
Perl has Carp which is a module as old as Perl 5. It has |
| 11 |
an option to print errors (from the perspective of caller) |
| 12 |
with stack backtrace. With a few lines of codes, this module |
| 13 |
illustrates how to make warn() and die() noisy as well. |
| 14 |
|
| 15 |
This module was written as a reaction to Acme::JavaTrace by |
| 16 |
Sébastien Aperghis-Tramoni. At the time I didn't know Sébastien or |
| 17 |
or understood his humor. But the module |
| 18 |
idea stood and lives to help you out with debugging your code. |
| 19 |
|
| 20 |
INSTALLATION |
| 21 |
|
| 22 |
To install this module type the following: |
| 23 |
|
| 24 |
perl Makefile.PL |
| 25 |
make |
| 26 |
make test |
| 27 |
make install |
| 28 |
|
| 29 |
DEPENDENCIES |
| 30 |
|
| 31 |
This module requires these other modules and libraries: |
| 32 |
|
| 33 |
Carp |
| 34 |
|
| 35 |
but that is a core Perl module. |
| 36 |
|
| 37 |
COPYRIGHT AND LICENCE |
| 38 |
|
| 39 |
Copyright (C) 2005-2013, 2018 by Adriano Ferreira |
| 40 |
|
| 41 |
This library is free software; you can redistribute it and/or modify |
| 42 |
it under the same terms as Perl itself. |