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


in reply to Moving perl from one directory to another.

The default location of perl's library files are usually hard-coded into the perl binary at compile time, but can be changed at run time via the PERL5LIB environment var, the -I perl command line switch, or 'use lib' within a script, for example.

Dave.

  • Comment on Re: Moving perl from one directory to another.

Replies are listed 'Best First'.
Re^2: Moving perl from one directory to another.
by gurusrin (Initiate) on Jun 11, 2015 at 08:25 UTC
    Thank you Dave.

    I will try out this. The only problem is that the change might have to be done in lots of files.

      Not necessarily. You should be able to export the appropriate environment variables in the shell startup script or somewhere simillar (I don't know AIX, so I can't give an accurate suggestion on that).