He means use the CGI.pm module, available from CPAN or quite likely already installed on your system. You're basically re-inventing CGI parameter parsing, which is essentially already mastered in this CGI module. By using the module to do your parsing instead of re-implementing it yourself, we can essentially rule out that part of your code as the problem.