in reply to function or something

Depending on what modules you are using in your program, you might want to set up signal handlers
{ local $SIG{__DIE__}; local $SIG{__WARN__}; $ret = eval { someFunction() }; warn $@ if $@; }
to mask some other modules handlers, which might choose to just exit($!) or tread on $@ or $!.

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}