...
EXP30:EX1: There are several instances when die() and warn() are preferred over carp() and croak():
- Inside a signal handler . This is because the behavior of
croak()andcarp()functions when invoked inside a signal handler are not documented.
- Outside a subroutine, that is, when used in a small Perl script. In this case, all four functions have no stack trace to indicate their calling location.
...
Automated Detection
Tool | Diagnostic |
|---|---|
Perl::Critic
| ErrorHandling::RequireCarping |
| InputOutput::ProhibitInteractiveTest |
| Miscellanea::ProhibitFormats |
...
The CERT Oracle Secure Coding Standard for Java: MET02-J. Do not use deprecated or obsolete classes or methods
Bibliography
| [Conway 2005] | |
| [CPAN] | Elliot Shank, Perl-Critic-1.116 RequireCarping, InteractiveTest, ProhibitFormats |
|---|---|
| [ |
...
| CPAN] |
...
| Chris Dolan, |
...
Max. parent
...