As a side note: you mention two times your book doesn't contain enough information to solve your problem. Maybe you should try to get better documentation. The reference manual for CGI.pm should be accessible via
man CGI (at least on unixoid systems). And have a look at
Book Reviews...