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