in reply to Problem of scope : $SIG{__WARN__} in a module...

The local $SIG blah has to happen during runtime as you enter each sub, so there isn't a good way around it.
  • Comment on Re: Problem of scope : $SIG{__WARN__} in a module...

Replies are listed 'Best First'.
Re^2: Problem of scope : $SIG{__WARN__} in a module...
by dragonchild (Archbishop) on Dec 03, 2004 at 18:27 UTC
    You _could_ use Hook::LexWrap ... *grins*

    Being right, does not endow the right to be rude; politeness costs nothing.
    Being unknowing, is not the same as being stupid.
    Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
    Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.

      It's interesting, but... it's overkill there. I just aim to achieve a very clean output :)