- or download this
require mydir::mymod123;
$result = mydir::mymod123::mysub();
- or download this
package mydir::mymod123;
sub mysub
...
return $x;
}
1;
- or download this
$modno = 123; # Just for simplicity. Actually this number will
+come from a database.
require "mydir/mymod$modno.pm";