Perl Monk, Perl Meditation | |
PerlMonks |
Re: Object Method Callby dreadpiratepeter (Priest) |
on Jul 26, 2009 at 16:48 UTC ( [id://783350]=note: print w/replies, xml ) | Need Help?? |
In addition to what moritz said, you will notice the problem if you attempt to use $self in display. Since you called it as a sub rather than a method $self will be undefined.
-pete "Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."
In Section
Seekers of Perl Wisdom
|
|