somu Posted May 11, 2012 Share Posted May 11, 2012 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/perlprint "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. Quote Link to comment Share on other sites More sharing options...
Byron Posted May 12, 2012 Share Posted May 12, 2012 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; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.