in reply to Overriding perl modules
If you mean that you want to have your version of Some::Module used instead of the system-installed version of Some::Module, then you'll need to manipulate @INC (probably using something like use lib "/some/dir/lib/perl5". Or you could require "/some/file.pm" which defines Some::Module before anything else does use Some::Module. Hooking that into your command-line will have to be done at compile-time (i.e. in a BEGIN block, but is otherwise straightforward.
If you mean something else, you'll have to elaborate what you're trying to accomplish.
|
|---|