in reply to Re: Simple OO Question
in thread Simple OO Question
As an expansion: _Print_Me() is expecting an argument (a reference to a hash), which it puts in $self. It then prints the hash element user out of that argument.
In your version of Show_Me, you don't pass it that expected argument. There are two ways to do so in this case: Using standard function notation (_Print_Me($self)) or using object notation, which implies the object itself as the first argument. ($self->_Print_Me())
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Simple OO Question
by dsheroh (Monsignor) on Sep 16, 2010 at 13:21 UTC |