...
Unlike die()
, croak()
provides the file name and line number of the function that invoked the function that invoked croak()
. This is more useful for application code that invokes library code; in this case, croak()
and carp()
also will reveal the file name and line number of the application code rather than the library code.
Exceptions
EXP30:EX0: The -t
function should not be used for determining if input is interactive, but it is perfectly valid to determine if output is interactive. So it may be used on *STDOUT
or *STDERR
.
Risk Assessment
Using deprecated or obsolete classes or methods in program code can lead to erroneous behavior.
...