$modno = 123; # Just for simplicity. Actually this number will come from a database. require "mydir/mymod$modno.pm";