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.plor have you set the permissions on the script to be executable and then just called:
script.plIf the latter, look a the first line of your script, the "she-bang line". It should look something like:
#! /usr/bin/perlNow execute the following from a command prompt:
which perlI'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 perlThat should pick up the same perl for which JSON.pm is installed.
Good luck!
-BMT
|
|---|