You mention
CGI.pm at your code. Reading it's POD section perldoc CGI is worth it's effort for all your needs. If you use all its power you are able to redirect, create your forms, mark errors, use cookies, etc. At least, invest your time in reading one of the best CGI modules.
.{\('v')/}
_`(___)' __________________________
Wherever I lay my KNOPPIX disk, a new FREE LINUX nation could be established.