I have commented out "AllowOverride None" But now I am getting follwing log message
"malformed header from script. Bad header = hello: /var/www/cgi-bin/a.pl"
a.pl contains
#!/usr/bin/perl
use strict;
use CGI;
my $q =CGI->new();
print $q->header("text/html");
print "hello";