You are viewing the version of this documentation from Perl 5.16.0. 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.

This variable was added in Perl 5.004.