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

Current state of the interpreter. Undefined if parsing of the current module/eval is not finished (may happen in $SIG{__DIE__} and $SIG{__WARN__} handlers). True if inside an eval, otherwise false.