#code in modules\test.pm package test; sub func() { print "hello from test\n"; } 1;