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())
In reply to Re^2: Simple OO Question
by DStaal
in thread Simple OO Question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |