I am trying to use Test::JSON in my perl code. I do not have sudo access to install the module on the linux machine. Hence, I have downloaded JSON.pm from cpan and placed it in Test folder. Also, I have another use JSON in my code, which again I downloaded from cpan and placed in JSON folder
I have included them as
use lib '/abc/xyz/JSON';
use JSON;
use lib '/abc/xyz/Test';
use Test::JSON;
when i try to run it, it gives me compilation error as Can't locate Test/JSON.pm in @INC. However, it is able to use the first JSON.pm module, not the second JSON.pm module (Both the modules are JSON.pm). I tried various combinations for using the second Test::JSON module, but wont work.