Jump to content

Recommended Posts

Posted

Hello everyone...

 

I hope this is the right forum to ask this question.

I know a bit of html and perl.

 

I wrote a basic perl script as follows

 

#!/usr/bin/perl

print "hello world;

 

and uploaded in public_html folder with permissions 755.

But my site is not visible.

 

 

Please help.

If i can just figure this out, i can start playing with the rest on my own.

Posted

This will work:

 

#!/usr/bin/perl -w
use CGI qw(:standard);
print header; 
print "Hello World!";

 

 

Even better:

 

#!/usr/bin/perl -w
use CGI qw(:standard);
print header,
start_html('Hello World'),
h1('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...