http://www.perlmonks.org?node_id=89412


in reply to CGI Configuration Woes (was: newbie alert)

Guess #1: The program is not world-executable. Use chmod to set the permissions to 755, for example.

Guess #2: Your program dies (perhaps while opening the file?) but you can't see the error, because it's being written to your web server's error log. If you use the following module, runtime errors will also be shown to the browser:

use CGI::Carp qw(fatalsToBrowser);

Update: Belated Guess #3: The program may have a typo and not compile at all. What happens when you run it from the command line rather than through the browser?

Update: I should point out that the question was originally asked in this node, where there are a number of replies that address some general coding improvements.

buckaduck