in reply to Re^2: To Run perl through CGI
in thread To Run perl through CGI

Change
Alias /cgi-bin /var/www/cgi-bin/
to be
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
(note use of ScriptAlias rather than Alias and the new trailing slash in the first string after ScriptAlias)