in reply to Re^2: Most effective way to dynamically load a module?
in thread Most effective way to dynamically load a module?

If you have to do it at runtime, just use require. It won't call import, and it won't load a module if it's already loaded.

Replies are listed 'Best First'.
Re^4: Most effective way to dynamically load a module?
by tilly (Archbishop) on Aug 22, 2006 at 05:20 UTC
    Using require is fine but then you have to manually convert between class names and file names yourself. Which means that you have to translate Module::Name to Module/Name.pm.

    Not hard. But requires extra code.