in reply to Re: Dynamic use/require
in thread Dynamic use/require
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Dynamic use/require
by CountZero (Bishop) on Feb 28, 2008 at 20:49 UTC |