in reply to problem with require lib file
Your first order of business is to get rid of cgi-lib.pl. It's old, not supported, buggy and insecure.
What you really want to use is Lincoln Stein's CGI.pm -- it comes standard with every distribution of Linux, has an object-oriented interface (although you can use the functional one also), and has all sorts of niceties like simple parameter parsing, multi-part forms, and so on.
CGI.pm really will make your life a lot easier.
-- Brett
Go not to the Elves for counsel, for they will say both no and yes
In Section
Seekers of Perl Wisdom