in reply to Re^4: How to configure Apache for running perl scripts.
in thread How to configure Apache for running perl scripts.

Okay!

Now it's at least running your script, but something is not 100% with the output... Try:

#!/usr/bin/perl use strict; use warnings; use CGI qw(:all); print header; print "hello!";
And chmod 755 a.pl just to be sure.

If it still gives the error, run the script from the command line (./a.pl) and paste the output...

(We'll get there yet!)