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

You may need to set path for each user (or add it into the, if runnling *nix, .login or the equivalent file). More details here Have fun :-)
  • Comment on Re: perl module not getting listed for non root user

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:46 UTC
    Thanx for the reply.
    The link suggested by you mentions about using the perl modules installed in my home directory.
    My issue is that I have the perl modules installed by the root under /usr/opt. I want to use these perl modules only.
      One way is to have all your programs access the modules via pragmas of the following type:
      #!/usr/bin/perl use lib "/usr/opt/<path-to-perlmodule-folder>";
      The other way is to specify the path in each user's .bashrc or .login which is called when you login like this (you can also make an entry in /etc/bash.bashrc or /etc/login.defs or equivalent files so that new users you add automatically get it into their login rc files).
      export PERL5LIB=/usr/opt/<path-to-perl5-module-folder>