The following Perl script is bug free and can be used for testing if Perl is working on your account.
#!/usr/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print <<"EOF"; <HTML> <HEAD> <TITLE>Hello, world!</TITLE> </HEAD> <BODY> <H1>Hello, world!</H1> </BODY> </HTML> EOF
- Create a new file and copy the above script into it
- Save it as “hello.cgi” or “hello.pl”
- With your FTP program…
- Upload it to your “public_html” folder
- Change the modification privileges (chmod) to 755
- Try access it in your web browser (e.g. http://yourname.zenutech.com/hello.cgi)