Impossible de voir le script perl sur la page Web (correct dans CMD)

Mon programme Perl fonctionne correctement à partir de la ligne de commande mais pas en tant que page Web.

Voici mon script:

#!/usr/bin/perl print "Content-type: text/html\n\n"; print "\n"; print " PERL CGI\n"; print ""; print "hello perl-cgi!!!!!!!"; print ""; print "\n"; 

Erreur sur wepbage: Internal Server Error

Erreur du journal des erreurs:

 [Tue Oct 04 10:04:41 2016] [error] [client 172.23.40.113] (8)Exec format error: exec of '/var/www/html/test2.pl' failed [Tue Oct 04 10:04:41 2016] [error] [client 172.23.40.113] Premature end of script headers: test2.pl 

Voici une partie de /etc/httpd/conf/httpd.conf

  Options ALL AllowOverride None Order allow,deny Allow from all Options +ExecCGI -Indexes AddHandler cgi-script .cgi .pl  

Voici le contenu du répertoire www/html

 786875 -rwxr-xr-x. 1 root root 16 3. ĹĂj 10.54 incex.html 786669 -rwxr-xr-x. 1 root root 22 27. zĂĄĹ 10.00 index.html 786688 -rwxr-xr-x. 1 root root 21 3. ĹĂj 08.47 info.php 786899 -rwxr-xr-x. 1 root root 2765 3. ĹĂj 14.51 test.pl 786834 -rwxr-xr-x. 1 root root 161 3. ĹĂj 15.36 test2.cgi 786833 -rwxr-xr-x. 1 root root 259 4. ĹĂj 11.43 test2.pl 

Merci pour votre aide .. maintenant ça marche .. le problème était très simple (et stupide). Je ne l’ai pas vu dans nano .. mon script a commencé sur la deuxième ligne .. ainsi il n’a pas commencé avec #! / Usr / bin / perl