package Tester::Test; use strict; use Exporter qw/ import /; our @EXPORT_OK = qw/ test /; sub test{ print "test"; } 1; #### #!/usr/bin/perl -w use strict; use CGI; use Tester::Test qw/test/; # if you want to import it into your namespace Tester::Test::test(); # or directly test() if you have imported it exit;