# a menu or two where the user makes a selections that lead up to defining $lib and $module unshift(@INC, $lib); # done mid-execution, after the menu routines require "$module.pm"; # one clean import that loads a number of others all relative to $lib MODULE::main(@args); # execute a sub within the one of the newly imported modules within the selected lib