Martin90 has asked for the wisdom of the Perl Monks concerning the following question:
If I understand correctly in order to use this perl version in my scripts I have to do two things. First add new perl path to environment $PATH variable by shell command "export PATH=$PATH:/opt/perl-version/bin/perl" and second, add this path with shebang to all script "#!/opt/perl-version/bin/perl". Is it ok ?
And the most important question how to install CPAN modules to that fresh instalation ?
Regards.
UPDATE:SOLVED! ;) As it turned out #!/opt/perl-5.16/bin/perl was right shebang.
Thanks you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Install CPAN module to another perl version
by Anonymous Monk on Aug 14, 2014 at 17:25 UTC | |
|
Re: Install CPAN module to another perl version
by Anonymous Monk on Aug 14, 2014 at 19:46 UTC | |
by Martin90 (Sexton) on Aug 14, 2014 at 21:36 UTC | |
by Anonymous Monk on Aug 14, 2014 at 21:57 UTC | |
by Martin90 (Sexton) on Aug 15, 2014 at 11:58 UTC |