Ok, I haven't taken a serious look at this, or tested it (yet), but I *garuntee* that your code will look better, work better and be easier to understand if you use
CGI.pm
for all your form stuff, and probably a decent chunk of your plain HTMl. The amount of things you can do wrong drops to a huge degree when you use well understood and tested modules.
I know it's easy to try to do everything yourself when you have a basic understanding of language concepts, but one of the best things about Perl is the vast array of modules ready
and free for use. Check it out, use what others have done before you, and watch your efficiency and ability rise. =)
Trinary