I always wonder why one would need/wish to load modules dynamically. Are they particularly large and would not fit into memory at the same time?Some times it can be useful to have a plugin mechanism, where the code calling the modules does not know which modules may be available (since the plugins may be written by third parties). In those instances, you need /some/ kind of mechanism to pass (at least) a package name to the system. Having it load at the same time just makes things more stream-lined.
In reply to Re^2: Dynamic use/require
by Joost
in thread Dynamic use/require
by Elijah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |