in reply to Using Modules

The easiest solution is probably:

eval "use $_madFile"; # or... eval "use MA::$_madFile";

use statements execute right after Perl compiles them, before it starts running the rest of the program. If they contain variables, those variables will contain undefined values (because they didn't get set yet).