I want to run a perl script which uses JSON on my website. I've tested the following script in the cgi-bin folder with success:
#!/usr/local/bin/perl
print "Content-Type: text/html \n\n";
print "<h1 align=center>\n";
print "Welcome to my website\n";
print "</h1>\n";
But as soon as I include the JSON module, the website's CMS (OpenCart) reverts to a "Page cannot be found" error:
#!/usr/local/bin/perl
use JSON;
print "Content-Type: text/html \n\n";
print "<h1 align=center>\n";
print "Welcome to my website\n";
print "</h1>\n";
A rep from the website host confirmed JSON is installed on the (linux) server
Am I using the correct syntax to include JSON in my script?