in reply to Re^2: System vs. User module version of List::Util
in thread System vs. User module version of List::Util
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: System vs. User module version of List::Util
by Lady_Aleena (Priest) on Jun 18, 2017 at 09:09 UTC | |
by karlgoethebier (Abbot) on Jun 19, 2017 at 07:39 UTC | |
by afoken (Chancellor) on Jun 19, 2017 at 08:34 UTC | |
Re^4: System vs. User module version of List::Util
by Lady_Aleena (Priest) on Jun 20, 2017 at 11:12 UTC | |
by Anonymous Monk on Jun 21, 2017 at 06:58 UTC |
In Section
Seekers of Perl Wisdom