I have a Perl script which is scripted to print "Hello!"
on a web browser. I am using apache as my localhost server. The OS I am using is the Red Hat 5.
The problem is that when I type the address http://localhost/example.pl or http://127.0.0.1/example.pl, it shows me exactly the entire script codes but not the "Hello!" word that should be output.
The Perl script:
#!/usr/bin/perl
print "content-type: text/html \n\n";
print "Hello, Perl!";
Anyone has any ideas on this? Thanks!