This is the error that I am getting in the apache error log file
syntax error at C:/wamp/bin/apache/Apache2.2.21/cgi-bin/date.cgi line 12, near "print "</body"\r
Wed Mar 14 20:26:24 2012 error client 127.0.0.1 Search pattern not terminated at C:/wamp/bin/apache/Apache2.2.21/cgi-bin/date.cgi line 13.\r
The code for the date.cgi file is as below
#!/usr/bin/perl
# print CGI header
print "Content-Type: text/html\n\n";
# now print the time
print "<html> <head>\n";
print "<title>Current Date and Time</title>\n";
print "</head> <body>\n";
print "<h1>The date is now</h1>\n";
print "<p>$time = (localtime),"</p>";
print "</body>\n"
print "</html>\n";
Can some one tell me what is that I am doing wrong.Thanks
Ajit