Please use
strict,
warnings, taint-mode (see
perlsec) and read
Ovid's CGI course,
how (not) to ask a question (
also take note of the section on choosing a title for your post),
how to ask questions the smart way and the
documentation for the
modules you are using. Also try your code to see if it actually does what you think it does, and
after you've done that, if you still have any questions, try posting here again.
There is lots of very good information available on the web to help you along. We are *not* here to do your work for you or to repeat all that documentation.