At 09:49 2003-10-27 +0600, you wrote:Hello! I have a problem and can't get it how to solve it. When I'm using 'use Module;' in if..elsif statement I've got situation when all modules is included.
'use' loads modules at compile time. To load modules conditionally, at runtime, try 'require' instead. EG:
require DBI if $dbi_wanted;
Oops. I forgot that 'use' implicitly calls import(). To fully simulate 'use My::Info' at runtime you should do this:
require My::Info; My::Info->import;
This really isn't a mod_perl issue. It's just Perl stuff.
Mark