You can't conditionally load a module with "use" the way you are attempting to do it. You can use "require" instead of "use", you can also look into "autoload" or the "if" pragma. "require" should be the easiest to impliment. -------------------------------------------------