http://www.perlmonks.org?node_id=1080722


in reply to Re^3: perl lost its modules!
in thread perl lost its modules!

How do I change the INC path? Or do I create the /root/perl5 folders, and chmod 755
You mention earlier that "The Fedora installation does set PERL5LIB to /root/perl5", to which I would reply, no it doesn't, not by default. what I suspect you are doing is being logged in as root, and in root's /root/.bashrc or similar, it sets PERL5LIB to $HOME/perl5. Then you are doing su user rather than su - user, and so inheriting root's environment. Note that /root is the root user's home directory; a non-root user should *not* be accessing anything under /root.

So in summary, your PERL5LIB environment variable shouldn't be set; find out how its being set, and stop it.

Dave.