in reply to Question on CGI-PERL

I place bot html & corresponding CGI code in /var/www/html directory

CGI scripts typically go in a cgi-bin directory (which is set up to run the scripts instead of sending out the source code)... But ultimately, it's a question of how the web server is configured.