in reply to Can't locate Test/JSON.pm in @INC

You should not include the module name as part of the lib path. Try:
use lib '/abc/xyz';

Replies are listed 'Best First'.
Re^2: Can't locate Test/JSON.pm in @INC
by zuverlassig (Novice) on Dec 27, 2013 at 16:13 UTC
    thanks toolic, you are right, but I have two folders, JSON and Test, and each of them contains a different JSON.pm module. And the module in JSON folder works in my code, but the module in my Test folder gives me compilation error.