Think about Loose Coupling | |
PerlMonks |
Re: Module Naming Dilemmaby gaal (Parson) |
on Jan 04, 2005 at 23:12 UTC ( [id://419447]=note: print w/replies, xml ) | Need Help?? |
How about coding like this?
This isn't too bad from a usability perspective. It requires no cleverness to get the correct first arguemnt to the two new subs. It might make updating your code to use a subclass a little easier. Variations on this idea: a constant. Or a sub that decides at runtime which classname to return.
In Section
Seekers of Perl Wisdom
|
|