Ошибка «конец скрипта перед заголовками» в Apache

Apache в Windows выдает мне следующую ошибку при попытке получить доступ к своему Perl-скрипту:

Server error!

The server encountered an internal error and was unable to complete your request.

Error message: 
End of script output before headers: sample.pl

If you think this is a server error, please contact the webmaster.

Error 500

localhost
Apache/2.4.4 (Win32) OpenSSL/1.0.1e PHP/5.5.3

это мой пример сценария

#!"C:\xampp\perl\bin\perl.exe"
print "Hello World";

но не работает в браузере

Ответы на вопрос(11)

Ваш ответ на вопрос