Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Overhahuled EX1

...

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.

EXP30:EX1: The behavior of the  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() and carp() 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.
  • If the string given to die()

...

  • or warn()

...

  • ends with a newline, then these functions do not provide any file name or line number information. Consequently, they may be invoked if given a string literal that clearly ends with a newline (and the developer clearly does not wish to reveal file name or line number information).

Risk Assessment

Using deprecated or obsolete classes or methods in program code can lead to erroneous behavior.

...