Thank you all for trying to help me.
bjelli, your suggestion came close to what I have done (after I posted my problem here).
I am cyrrently trying to get the server cgi script (reading cgi.pm), as I am getting some header errors.
Thank you all for your help. You guys rock !!!
got it. the use cgi statement needs ':standard'
and I had to print standard headers. which corrected the errors.
Now to try and find the relevant copy stuff.