Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: converting to a sub-classby rhesa (Vicar) |
on Oct 20, 2007 at 17:37 UTC ( [id://646196]=note: print w/replies, xml ) | Need Help?? |
It's perfectly sane, don't be shocked :-)
The technique you're using is related to the Factory Pattern. It's quite an established idea. Note that the hint to avoid hard-coding (parts of) the class name is good.
In Section
Seekers of Perl Wisdom
|
|