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