Jump to content

Total Newbie.. Please Help


Recommended Posts

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.

Link to comment
Share on other sites

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;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...