Hi, I'm trying to run with mod_perl the following script:
#!/usr/bin/perl print "\n"; print "<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n\n"; print "<html>\n"; print "<head>\n"; print " <meta content=\"text/html; charset=ISO-8859-1\" http-equiv=\"content-type\">\n"; print"</head>\n"; print "<body>\n"; print "HELLO!!!!\n"; print "</body>\n"; print "</html>\n"; IMHO that SHOULD work, but it doesn't: I receive from error.log: [Wed May 03 18:29:36 2006] [error] [client 192.168.1.1] malformed header from script. Bad header=<!DOCTYPE html PUBLIC "-//W3C/: myscript.pl Of course the generated html file shows correctly when put in /var/www/html Yes, I'm a newbie, but I'm getting crazy about it. What have I done wrong? Thanks a lot!