in reply to Re^4: use 5.005 with perl v5.16.3
in thread use 5.005 with perl v5.16.3

Is there a way to see what is in the @INC list?

Of course:

perl -E 'say qq/@INC/'

🦛

Replies are listed 'Best First'.
Re^6: use 5.005 with perl v5.16.3
by sijaanh (Initiate) on Aug 08, 2021 at 09:40 UTC

    Thanks for your answer

    . It appears I have a tottaly different libraries under @INC in each server. Could this be why its working on the first but not on the second??

      You said you have different Perl versions on each server but you haven't said what they are. Could you please post the output of perl -V from each server, as well as the output of find /perl/perl_for_siji `perl -e 'print "@INC"'` -path '*JSON/PP.pm' -exec grep -Hn VERSION '{}' + from each server? (both inside <code> tags)

        First server (the one that works) has perl v5.8.8.

        The second server has perl v5.16.3.

        Output on 5.8.8:
        /perl/perl_for_siji/JSON/PP.pm:14:$JSON::PP::VERSION = '2.27200'; /perl/perl_for_siji/JSON/PP.pm:1429:$JSON::PP::IncrParser::VERSION = ' +1.01'; /perl/perl_for_siji/JSON/PP.pm:1632:=head1 VERSION ./tmp/perl_for_siji/JSON/PP.pm:14:$JSON::PP::VERSION = '2.27200'; ./tmp/perl_for_siji/JSON/PP.pm:1429:$JSON::PP::IncrParser::VERSION = ' +1.01'; ./tmp/perl_for_siji/JSON/PP.pm:1632:=head1 VERSION
        Output on 5.16.3:
        find: '/usr/local/lib64/perl5': No such file or directory find: '/usr/local/share/perl5': No such file or directory /perl/perl_for_siji/JSON/PP.pm:14:$JSON::PP::VERSION = '2.27200'; /perl/perl_for_siji/JSON/PP.pm:1429:$JSON::PP::IncrParser::VERSION = ' +1.01'; /perl/perl_for_siji/JSON/PP.pm:1632:=head1 VERSION