I figured it out. I had to put the cgi-bin folder in the same directory as the script. I have always had my cgi-bin directorys in the public_html root folder but alas it is working.

Hope this helps someone else. Thanks

loachman