# from Austin Schutz
# on Wednesday 03 September 2008 11:41:

>        From the code, I would have no idea what this does without a
> fair bit of perldoc-ing. How about some comments? bad bunny?

Oh, so you want features?  I'm not sure what constitutes a "fair bit" of 
documentation though

  =head1 ABOUT

  Throws an error if any code sets  $SIG{__DIE__} (other than with 
local().)  This allows you to detect misbehaving code which might e.g. 
call exit() from within an eval {}.

  =head1 USAGE

    perl -MCarp::nosigdie yourprogram.pl

  =head1 SEE ALSO

  L<perlvar/$^S>, L<perlvar/%SIG>, and L<perlfunc/die>

  =cut

Yeah, the message:

  BZZT:  non-localized $SIG{__DIE__} assignment at foo.pm line ...

would probably be more useful than:

  bad bunny at foo.pm line...

Sure.  And possibly even installing your own global die handler via 
import() would be nifty too.

So Carp::nosigdie is a good name then?

Thanks,
Eric
-- 
"...our schools have been scientifically designed to
prevent overeducation from happening."
--William Troy Harris
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to