Thanks for the reply Atropos.
Contrary to my first assumption, it’s not a problem with CGI::Application.
I eliminated as many factors as I could - just vanila perl print to STDOUT;
and, at your suggestion wrapped the headder line in a BEGIN block.
The result is the same. when run from the cmdlne i get:
Not evem CGI.pm
Not even CGI.pm
[/code]but when invoked from a link in html I get internal server error with
a premature end of headers error log entry. As you said, when called from
Apache the script is not even compiling. I'm stumped as to why though.
The script is file mode 755, it is under the DocumentRoot, the shebang
line is ‘#!/usr/local/bin/perl -w’, what am I missing? Is there some additional
configuration that I have not done?