Re^3: System vs. User module version of List::Util
by dsheroh (Monsignor) on Jun 18, 2017 at 08:40 UTC
|
And this is just great, for my stuff for the browser, I am stuck with 5.8.8; but on the command line of my web host, I have 5.24.2. That's so not fair! (And not a PM problem.)
This is actually something that you can probably fix.
On the command line, run which perl to get the path to the perl binary that you're using there. Now modify the shebang line at the top of your web script to match (e.g., if which perl says /home/aleena/perlbin/perl, then, in your web script, change #!/usr/bin/perl to #!/home/aleena/perlbin/perl) and your web script should now run in the same version of Perl as you get on the command line, and with the same compile-time settings, including the default value of @INC.
| [reply] [d/l] [select] |
|
| [reply] |
|
| [reply] |
|
|
Addendum:
which perl returns /usr/local/cpanel/3rdparty/bin/perl.
I don't have cpanel on my computer, so again, changing the shebang to match that would still make my local copies fail, I think.
No matter how hysterical I get, my problems are not time sensitive. So, relax, have a cookie, and a very nice day!
Lady Aleena
| [reply] [d/l] [select] |
|
| [reply] [d/l] [select] |
Re^3: System vs. User module version of List::Util
by karlgoethebier (Abbot) on Jun 18, 2017 at 08:28 UTC
|
BTW, you use Debian, right? You should consider to use Perlbrew.
Regards, Karl
«The Crux of the Biscuit is the Apostrophe»
Furthermore I consider that Donald Trump must be impeached as soon as possible
| [reply] |
|
| [reply] |
|
karls-mac-mini:uagent karl$ perlbrew list
5.14.2threads
perl-5.16.2
perl-5.16.3
perl-5.17.7
perl-5.18.0
perl-5.18.1
perl-5.18.2
perl-5.18.2threads
perl-5.20.0
perl-5.20.0threads
perl-5.22.1-threads
* perl-5.24.1threads
karls-mac-mini:uagent karl$ perlbrew switch perl-5.18.0
karl-mac-mini:uagent karl$ perlbrew list
5.14.2threads
perl-5.16.2
perl-5.16.3
perl-5.17.7
* perl-5.18.0
perl-5.18.1
perl-5.18.2
perl-5.18.2threads
perl-5.20.0
perl-5.20.0threads
perl-5.22.1-threads
perl-5.24.1threads
«The Crux of the Biscuit is the Apostrophe»
Furthermore I consider that Donald Trump must be impeached as soon as possible
| [reply] [d/l] |
|
I already install cpan modules without cpan sudo (into my $HOME directory).
You're still messing with the system Perl by overriding which modules get loaded by Perl-based applications. Now, that risk isn't large, because very little actually uses the system Perl. But if you wanted to go the safe route, that would be to install your own Perl. This also have some major benefits: Control over the version of Perl, and the ability to upgrade Perl without breaking anything. As a big-time Perl user, these features should be appealing to you.
| [reply] |
|
| [reply] |