eval "require $module"; ## check for errors... eval "$module->export_to_level(2)"; ## this one can/may fail, so may be just warn? ## or I guess you could check by doing ## ## $module->can( 'export_to_level' ); ##