The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Parse::FSM::Error - Format error and waring messages

SYNOPSIS

  use Parse::FSM::Error qw( error warning );

  error($message);
  error($message, $file, $line_nr);
  
  warning($message);
  warning($message, $file, $line_nr);

DESCRIPTION

This module formats an error or warning mesage and displays it on STDERR, exiting with die for error.

EXPORTS

None by default.

error

Formats the error message, shows it on STDERR and dies. The file name and line number are optional.

warning

Formats the warning message and shows it on STDERR. The file name and line number are optional.

AUTHOR, BUGS, FEEDBACK, LICENSE, COPYRIGHT

See Parse::FSM