$_[0]->test(pop); #Here $_[0] contains the class name. #first interpreter will check test is defined in Two or not. #If it isn't defined,then it will check the method in One package because of use base function One::test(pop); #calling the test method using the class name One because test isn't in Two's package workspace