in reply to Strawberry, CPAN and PERL5
I MAY have just found a way around the problem, and that is to use $^0; this tells you the operating system. So ...
$OS=$^0;
use lib "path_to_perl5" if $OS == 'MSWin32'
IN THEORY, on Windows, it will use the revised perl5 / CPAN location, but when run on Unix server,it will bypass this line as the IF will be incorrect. (Not yet tried)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strawberry, CPAN and PERL5
by Tux (Canon) on Aug 31, 2019 at 09:01 UTC | |
|
Re^2: Strawberry, CPAN and PERL5 (updated)
by AnomalousMonk (Archbishop) on Aug 31, 2019 at 15:37 UTC | |
|
Re^2: Strawberry, CPAN and PERL5
by Anonymous Monk on Aug 31, 2019 at 11:03 UTC | |
by levW (Beadle) on Sep 01, 2019 at 08:25 UTC |