somu Posted May 11, 2012 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.
Byron Posted May 12, 2012 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;
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now