UPDATE
Now that the OP has clarified its needs, it really needs to be done just like what Exported does, to be precise, by entering an auxiliary link into the caller's namespace by assigning glob. Example:
And the test:
> perl -e '{ package main; use My; use My2; 1;}' Setting My::import to ImportRenamer::import_me I am a cool importer Setting My2::import to ImportRenamer::import_me I am a cool importer
ORIGINAL RESPONSE
You do not need to do anything special except call the import method " import ". use already calls import() , see perldoc use :
use Module LIST
Imports some semantics into the current package from a named module, usually by smoothing certain routines or variable names into your package.
This is exactly equivalent to:
BEGIN { require Module; Module->import( LIST ); }
source share