Jump to content

Recommended Posts

Posted

Hi - I just signed up for heliohost, and I've gotten logged into the file manager today for the first itme. I have a perl script I'm trying to run, and it doesn't want to. It's a simple test screipt that I thought shouldn't have any problems, so any help you can offer would be greatly appreciated.

 

The script is at:

http://mwhiting.heliohost.org/cgi-bin/test.cgi

 

All it contains is:

#!/usr/bin/perl

print "Hello World.\n";

 

Permissions are set to 755, I can't see what else is the problem.

 

 

Michael

 

Posted

It needs an html header.

 

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello World.\n";

 

Or try this and then look at the source code:

 

#!/usr/bin/perl -w
use CGI ':standard';
print header,
start_html('My Hello World'),
h1('My Hello World'),
"Hello World",
hr,
end_html;

 

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...