Eric:
Just a thought - if there was a more general module, you could still
have it default to detecting global %SIG changes. It might be
beneficial to have similar reminders for other modules that shouldn't
be messed with, like changes to the $ENV{PATH}.
But I'm no expert in any of this. I just think you can have better
reusability while not compromising your ease of use, by setting
reasonable defaults and allowing those defaults to be overridden for
the special cases.
Cheers,
Jon
On Wed, Jan 7, 2009 at 7:06 PM, Eric Wilhelm <[email protected]> wrote:
> Hi all,
>
> Thanks for the input and suggestions on this. I ended up with this sort
> of usage:
>
> perl -MDevel::NoGlobalSig=die ...
>
> And that's on its way to the CPAN now.
>
> # from Jenda Krynicky
> # on Thursday 04 September 2008 10:22:
>
>>Why not make it slightly more general?
>>package CarpIfForgotten;
>
> This might be interesting as Sub::Exploding (Acme::landmine?), but in
> this case, I think supporting more generality detracts from the
> usability -- because you would have to type something much longer to
> get the diagnostic switch flipped.
>
> --Eric
> --
> "Left to themselves, things tend to go from bad to worse."
> --Murphy's Corollary
> ---------------------------------------------------
> http://scratchcomputing.com
> ---------------------------------------------------
>