more useful options | |
PerlMonks |
Re: Re: Re: BEGIN, eval {} and $^Sby diotalevi (Canon) |
on Dec 17, 2003 at 03:36 UTC ( [id://315211]=note: print w/replies, xml ) | Need Help?? |
I think you'll have to pass that state to yourself via a global. How about something like $^S_FOR_REAL_AND_FOR_TRUE? You'd set it to something true prior to entering eval-string and clear it afterwards. You can inspect that during $SIG{__DIE__}.
In Section
Seekers of Perl Wisdom
|
|