in reply to Re: (jeffa) 3Re: My first stab at OO perl...
in thread My first stab at OO perl...
Just because Perl doesn't do it automatically doesn't mean you can't write gatekeepers on your own functions.sub new { my $classname = shift; return undef if ref $classname; # Other stuff here. }
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: (jeffa) 3Re: My first stab at OO perl...
by Theseus (Pilgrim) on Jul 16, 2002 at 19:52 UTC | |
by thor (Priest) on Jul 17, 2002 at 04:46 UTC | |
by dragonchild (Archbishop) on Jul 16, 2002 at 20:38 UTC | |
by arturo (Vicar) on Jul 17, 2002 at 13:41 UTC |