package testmod; use DynaLoader; use Exporter; BEGIN { @ISA = qw(Exporter, DynaLoader); @EXPORT = qw(testfunc); @EXPORT_OK = qw(); } use strict; sub testfunc { ... } 1;