The stupid question is the question not asked | |
PerlMonks |
Re: Stopping hanging commands (evals) within debuggerby BrowserUk (Patriarch) |
on Dec 17, 2012 at 00:07 UTC ( [id://1009100]=note: print w/replies, xml ) | Need Help?? |
Just wrap your string eval in a block eval in which you set a %SIG{ INT } = sub{ die; }; ie:
If you also want to be able to break out of long-running opcodes, you'd have to look at setting local $ENV{ PERL_SIGNALS } = 'unsafe';. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|