First cgi-bin program written in perl are in text format and not the compiled one as far as i know it. Here is simple example
Code:
#!/usr/local/bin/perl
print "Content-type: text/plain\n";
print "Hi\n I am the monk\n";
Then save it and setup executable permission on it using
chmod +x my.perl
Place program in cgi-bin directory.
Yes you may need to point correct directory in httpd-conf.