package Bar; use Foo::XXX; sub create_foo { return Foo::XXX->new(@_); }