my $foo = new MyPackage(); $foo->foo('test1'); MyPackage->foo('test2'); MyPackage::foo('test3'); # not handled by the case above