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

The script is a big script which wasnt written all by me. So I dont know for which purpose they need libraries from  /perl/perl_for_siji/, but they do. This issue doesnt appear in a different server which has a differernt perl and maybe a different @INC? How can I debug this? Is there a way to see what is in the @INC list?

Replies are listed 'Best First'.
Re^5: use 5.005 with perl v5.16.3
by hippo (Archbishop) on Aug 08, 2021 at 09:28 UTC
    Is there a way to see what is in the @INC list?

    Of course:

    perl -E 'say qq/@INC/'

    🦛

      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)