in reply to 500 internal Server Error on executing CGI script

To make your .pl file executable, you should edit your http server.

In apache it looks something like that:

AddHandler cgi-script .pl

What your error log says?

Did you print the correct headers at the top of your file? (print "Content-type: text/html\n\n";)?

Do you use strict;?