Re: LWP and SIG traps not playing well together!
Chip Salzenberg (chip@atlantic.net)
Wed, 28 May 1997 17:24:02 -0400 (EDT)
According to Gurusamy Sarathy:
> I dunno. I use __DIE__ hooks in my embedded app to selectively
> report certain deaths inside eval-ed code the user may have typed
> in. Always localizing the hook inside the eval would make that
> impossible.
No, you'd just have to prepend '$SIG{__DIE__} = \&reporter; ' to
whatever the user typed.
> It's easy enough to override CORE::eval to do the localizing, so
> maybe we should just provide a module that does that.
>
> use Quiet 'eval';
> eval { ...hooks localized... }
AFAIK, you can't override eval BLOCK.
--
Chip Salzenberg - a.k.a. - <chip@pobox.com>
"Vacation time. Families travel east, west, north, or south."
"Some just burrow straight down." -- Crow T. Robot // MST3K