You are viewing the version of this documentation from Perl 5.12.2. View the latest version
$EXCEPTIONS_BEING_CAUGHT
$^S

Current state of the interpreter.

$^S         State
---------   -------------------
undef       Parsing module/eval
true (1)    Executing an eval
false (0)   Otherwise

The first state may happen in $SIG{__DIE__} and $SIG{__WARN__} handlers.