The reason that it doesn't run correctly is because Atleast as far as I have read in my CGI book. CGI scripts are aliased. Meaning that, your scripts are never actually run in front of the person that is using them.

You should be using your scripts through a alias in your html.

It should be something like this. (Forgive me, my HTML skills kind of suck right now.)

<html>
<title> This is the song that never ends </title>
<Head> Welcome to my site!!! </title>
<body>
<form method = "Post" action="/cgi-bin/form.exe"> Form</form>
##That would be what, would get your cgi to run your perl script, whenever this page was run.
</body>
</html>

You have got to forgive me if that isn't the best explanation, but I really suck at HTML, I can do the basics, I usually use other languages where my html falls off.

If you need a better explanation, I will show you. I can grab a book real quick for about 2 mins, and then write this a better way.

As for the set up for CGI and perl. HT pretty much covered that, but there is one thing I am going to have to say, if you are running RH, which I doubt, but you are going to have to go to services, and turn on httpd.

Without that on, your server won't run.