just in addition to the others' constructors:
sub new { my $class = shift; $class = ref $class || $class; # other stuff bless $self,$class; }
It allows you to use the constructor as an instance method. This is also described in perltoot and imho very usefull.
--In reply to Re: Object Oriented Programming in Perl.
by fruiture
in thread Object Oriented Programming in Perl.
by DigitalKitty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |