package Foo::Bar::Baz; use Exporter::End; sub x {print 1}; # ... package main; use Foo::Bar::Baz; Baz::x(); # same as main::Baz::x();