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

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??

Replies are listed 'Best First'.
Re^7: use 5.005 with perl v5.16.3
by haukex (Archbishop) on Aug 08, 2021 at 09:56 UTC

    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