- $EVAL_ERROR
- $@
-
The Perl error from the last
evaloperator, i.e. the last exception that was caught. Foreval BLOCK, this is either a runtime error message or the string or referencediewas called with. Theeval STRINGform also catches syntax errors and other compile time exceptions.最後の
eval操作子による Perl のエラーです; つまり、最後に補足された 例外です。eval BLOCKの場合は、これは実行時エラーか、dieが呼び出されたときの 文字列かリファレンスです。eval STRING型式は、文法エラーやその他のコンパイル時例外も捕捉します。If no error occurs,
evalsets$@to the empty string.エラーが起きなければ、
evalは$@に空文字列を設定します。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".警告メッセージはこの変数に入りません。 しかし、"%SIG" に記述されている
$SIG{__WARN__}にセットすることで 警告を処理するルーチンを設定できます。Mnemonic: Where was the error "at"?
記憶法: どこで ("at") エラーが起ったか。