in reply to Re: Suppressing Subroutine redefined warning
in thread Suppressing Subroutine redefined warning

They are mixins which define subs in the same packages, but not main. I agree that that would be a bad idea.

It's possible I could be talked out of my mixin scheme, but it would take you a lot of effort. Explaining why would also be a lot of effort, which I will avoid, at least for now.

Phil

  • Comment on Re^2: Suppressing Subroutine redefined warning

Replies are listed 'Best First'.
Re^3: Suppressing Subroutine redefined warning
by japhy (Canon) on Mar 27, 2006 at 20:35 UTC
    The warnings pragma is lexical. If you don't want the 'redefine' warnings, you have to say so in the mixin classes themselves.

    Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
    How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart
      Thanks, that is correct.

      But, I don't want to remove the warnings in all cases. So, I'll do a bit of redesign to mind my namespace manners a bit better.

      Phil