in reply to Re: Re-using/changing a class
in thread Re-using/changing a class

You can also eliminate the warning by doing:

undef \&flipBits if defined \&flipBits;

You could either put this in the module (in which case you'd put it inside a BEGIN block before the subroutine(s) in question) or you could even loop over the symbol table of the module... If you import subroutines, I think you'll also get warnings for re-importing them.

Note also that the module needs to be aware that it might be "reused" so that it initializes properly in that case. Many modules won't have a problem here, but some will.

        - tye (but my friends call me "Tye")