Since we're doing OO and therefore concerned about inheritance and such, the utility class should be an actual class and use class methods:
package Foo; use UtilityClass; sub bubbles { ...class-specific stuff... UtilityClass->buttercup(); ...class-specific stuff... }
In reply to Re: Re: Re: Re: OOP - Sharing class methods
by perrin
in thread OOP - Sharing class methods
by mp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |