in reply to Re: Constants and Subclasses...
in thread Constants and Subclasses...

That's not going to work for anything that inherits from ChildClass. It also doesn't work if the inheritance relationship changes after compile-time.

[Added: You also forgot to import &import from Exporter or make the parent class an ISA of Exporter.]

⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

Replies are listed 'Best First'.
Re^3: Constants and Subclasses...
by t'mo (Pilgrim) on Dec 18, 2006 at 20:39 UTC

      Yes, but this is perl so it's allowed to happen and you might need to be prepared if it's ever done unto you.

      ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊