obviously I dont wnat the direct call of _some_method to succeed. Is there any way of guaranteeing this? Thanks in advance! perl object-oriented private-methodsuse SOD::MyOOInterface; my $instance1 = SOD::MyOOInterface->new(); $instance1->_some_method; #this produces an error: SOD::MyOOInterface::_some_method; # this results in a successful met +hod call
In reply to perl OO private methods by ennuikiller
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |