to the standard error output and exits the Perl
program with a nonzero exit status.
can be a list value, like
the arguments to
, from which the elements are concatenated
into a single string for output. If
does not end with
a newline (
), the current script filename, line number, and
input line number (if any) are appended to the message with a newline.
With no argument, the function outputs the string
exits the programs with the current value of the
variable, which contains the text describing the most recent operating
system error value. This value can be used in the
describe what the problem may have been.
behaves differently inside an
places the error message in the
variable and aborts the
, which returns an undefined value. This use of
can raise runtime exceptions that can be caught at
a higher level of the program.