in reply to Change Namespace of Package
It sounds like you don't need to use both version 7 and 8 from the same script, which makes things easier (if you did, that'd make things pretty complicated). You could install the modules to different, custom library paths. Hopefully, the modules use one of the standard Perl installation procedures: If it's ExtUtils::MakeMaker, run perl Makefile.PL INSTALL_BASE=/path/for/v7 resp. /path/for/v8 (the paths where you want to have the libraries installed); if it's Module::Build, run perl Build.PL --install_base /path/for/v7 resp. v8. Then, in your Perl scripts, you can point them at the correct library path, for example with use lib '/path/for/v7/lib/perl5' before loading the module.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Change Namespace of Package
by elliott9 (Novice) on Sep 14, 2019 at 22:04 UTC | |
Re^2: Change Namespace of Package
by ikegami (Patriarch) on Sep 15, 2019 at 21:35 UTC | |
by LanX (Saint) on Sep 15, 2019 at 22:06 UTC | |
by soonix (Canon) on Sep 16, 2019 at 11:15 UTC | |
by LanX (Saint) on Sep 16, 2019 at 20:15 UTC | |
by ikegami (Patriarch) on Sep 16, 2019 at 10:00 UTC | |
by LanX (Saint) on Sep 16, 2019 at 20:19 UTC |
In Section
Seekers of Perl Wisdom