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)
In reply to Re: Strawberry, CPAN and PERL5
by cristofayre
in thread Strawberry, CPAN and PERL5
by cristofayre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |