Just wrap your string eval in a block eval in which you set a %SIG{ INT } = sub{ die; }; ie:
eval { local $SIG{ INT } = sub{die}; eval $_code };
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';.
In reply to Re: Stopping hanging commands (evals) within debugger
by BrowserUk
in thread Stopping hanging commands (evals) within debugger
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |