Документация Perl 5

$@

  • $EVAL_ERROR
  • $@

    The Perl syntax error message from the last eval() operator. If $@ is the null string, the last eval() parsed and executed correctly (although the operations you invoked may have failed in the normal fashion).

    Warning messages are not collected in this variable. You can, however, set up a routine to process warnings by setting $SIG{__WARN__} as described in "%SIG".

    Mnemonic: Where was the syntax error "at"?

Deprecated and removed variables

Deprecating a variable announces the intent of the perl maintainers to eventually remove the variable from the langauge. It may still be available despite its status. Using a deprecated variable triggers a warning.

Once a variable is removed, its use triggers an error telling you the variable is unsupported.

See perldiag for details about error messages.

 
Разделы документации
Внешние ссылки