please never use the one-argument-form of bless. always bless into the $class you got as an argument to new. otherwise it's impossible to inherit from your class.sub new { my $self = [{},""]; bless($self); return $self; }
In reply to Re: A first attempt.. at OO perl
by tinita
in thread A first attempt.. at OO perl
by why_bird
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |