zuverlassig has asked for the wisdom of the Perl Monks concerning the following question:
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
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.use lib '/abc/xyz/JSON'; use JSON; use lib '/abc/xyz/Test'; use Test::JSON;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can't locate Test/JSON.pm in @INC
by toolic (Bishop) on Dec 27, 2013 at 15:43 UTC | |
by zuverlassig (Novice) on Dec 27, 2013 at 16:13 UTC | |
|
Re: Can't locate Test/JSON.pm in @INC
by aitap (Curate) on Dec 27, 2013 at 17:56 UTC | |
by zuverlassig (Novice) on Dec 27, 2013 at 18:13 UTC | |
|
Re: Can't locate Test/JSON.pm in @INC
by taint (Chaplain) on Dec 27, 2013 at 16:56 UTC | |
by zuverlassig (Novice) on Dec 27, 2013 at 17:34 UTC | |
by taint (Chaplain) on Dec 27, 2013 at 17:49 UTC | |
by zuverlassig (Novice) on Dec 27, 2013 at 18:05 UTC | |
by taint (Chaplain) on Dec 27, 2013 at 18:17 UTC |