package MyPackage; sub foo() { print 'stuff'; } 1; MyPackage::foo(); MyPackage->foo();