in reply to Re: conditionally include a module
in thread conditionally include a module

Just a little note on top of that. The import is what handles arguments you normally pass to use, so if you do something like:

use Whatever::Module qw(funky);

you have to add a Whatever::Module->import(qw(funky)); after your require.