somesub(); # just looking current namespace Foo::Bar::somesub(); # obviously, looking in Foo::Bar # and now you can even do this: my Foo::Bar $object; $object->somesub(); # will understand that it's a Foo::Bar's sub #### Foo::Bar->new()->some_geter()->somethingelse(); #### #@Returns Foo::Bar sub somefunc{ ... }