package Test; use Exporter; @ISA = ('Exporter'); @EXPORT_OK = ('test_func'); sub test_func { ...... } 1;