You got it, I cant see what i did wrong. I have been programming CGI scripts in C for a few years. Then all of a sudden the rug was pulled out from under me and i am forced to use perl because of the new servers. I would like help fixing a small problem i am having.The program is at most 20 lines. I broke it off from the main program to try and isolate the problem and i have. To put it better, i am too stupid to see what i skrewed up and i would like some one to post and say "YOU MORON! THIS IS WHAT YOU DID!". I can normally fix it if i can find it. I feel ashamed because i have to translate the simplese scripts from C into perl and im failing. ={ if anybody could take a look at it i would greatly appreciate it. I posted it in a text file for your reading pleasure. It is very small.