in reply to Catching DIE no matter what
You should only use SIG{__DIE__} for terminating the process cleanly.
update: eval doesn't spawn another interpreter. eval STRING compiles and executes the string, but that's not what you want either, you want eval BLOCK which just runs whatever code is in the block and catches exceptions.
update2: see also eval
|
|---|