in reply to setting up perl cgi in apache

As Anonymous Monk says, AddHander,SetHander or ScriptAlias is needed for cgi execution.

This is FAQ of apache (How do I enable CGI execution in directories other than the ScriptAlias? ).

You will see nothing in error.log message in this case because apache shows its content normally.