in reply to perl module not getting listed for non root user

perl -e 'print join "\n", @INC' should be different for root and non-root.

Replies are listed 'Best First'.
Re^2: perl module not getting listed for non root user
by s_gaurav1091 (Beadle) on Aug 12, 2008 at 05:32 UTC
    Hi, Thnx for the reply I can see that the contents of @INC are same for non-root and root user.
    $ perl -e 'print join "\n", @INC'
    /usr/opt/perl5/lib/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/5.8.2
    /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.2
    /usr/opt/perl5/lib/site_perl
    .$ su -
    root's Password:
    sdp2:/> perl -e 'print join "\n", @INC'
    /usr/local/jboss/lib/perl
    /usr/opt/perl5/lib/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/5.8.2
    /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi
    /usr/opt/perl5/lib/site_perl/5.8.2
    /usr/opt/perl5/lib/site_perl
    Is it possible that non-root user is not ale to search under /usr/?
      You are blind :)
      perl -le' print for @INC' >nonroot-inc perl -le' print for @INC' >root-inc diff -ub nonroot-inc root-inc