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

Hi brewzzer,

How are you calling your script? Are you calling it using something akin to:

perl script.pl

or have you set the permissions on the script to be executable and then just called:

script.pl

If the latter, look a the first line of your script, the "she-bang line". It should look something like:

#! /usr/bin/perl

Now execute the following from a command prompt:

which perl

I'd guess that will show something different than you have in your script, which means you're trying to run with a perl other than the one where JSON.pm is installed. Try updating that first line to match the location of your perl executable located by using the which command.

Alternatively, you could change that first line to:

#! /usr/bin/env perl

That should pick up the same perl for which JSON.pm is installed.

Good luck!

-BMT