in reply to Re^2: Module Path Problem
in thread Module Path Problem

and where is your CGI script / .pl page, using the same domain.com/folder1/.... example? As it stands, you are asking for the script to search in the root directory available to the .pl script. I am guessing that this is not the case, unless some chroot magic is happening.

--MidLifeXis

Replies are listed 'Best First'.
Re^4: Module Path Problem
by bigup401 (Pilgrim) on Nov 18, 2014 at 18:36 UTC
    cgi, pl files are in folder1

      Then the line should be use lib '.'; or use lib '/FULL/PATH/TO/FOLDER1';

      On a security-related note: make sure that your library path is not directly accessible from web-space.

      --MidLifeXis

        so how do i call the module because when i try to call it like this use Authen::OATH; it will still read from path where perl modules are installed