in reply to Re^2: Perl OO best practice?
in thread Perl OO best practice?
- $self->{apple} is not a hashref. It returns the first object shifted in at: $self{apple} = shift; ## other objects (hopefully)
- $self is a blessed hashref.
- $self->{apple}->serve() calls ->serve on the object returned by $self->{apple}