hey guys when i run test.pl in command line it works, but whe i run it in browser, it throws 500 internal server error....... #!/usr/bin/perl print "Content-type: text/html\n\n"; print <<END_HTML; <html> <head></head> <body>Hello, World!</body> </html> END_HTML Code (markup):
I haven't done Perl in a long time but if it's throwing a 500 error, it will have some more information in your Apache log. Look in there and see what the error really is.