![]() |
|
P is for Practical | |
PerlMonks |
Re: Re: Problem with My New Perl Objectby janx (Monk) |
on Jun 19, 2002 at 12:49 UTC ( #175644=note: print w/replies, xml ) | Need Help?? |
To make even neater write:
to be able to pull off tricks like this:
Using the bless {}, ref $pkg || $pkg idiom you are writing classes that are safe to subclass. Do have a look at Damian Conways excellent book Object Oriented Perl Kay
In Section
Seekers of Perl Wisdom
|
|