Test perl script

To check if perl is working on a server: Open a test file,
# vi test.pl
And enter the following code :

#!/usr/bin/perl

print “Content-Type: text/htmlnn”;
print “<html><body><h1>Perl is working!</h1></body></html>”;

Save and browse the file, www.yoursite.com/test.pl (replace yoursite.com with your website name).

About Sarath

A Techie from Kochi, India with 8+ years of experience in Linux and Windows server administration. I learn new things almost everyday and I enjoy the fun of learning and sharing my knowledge.