Then look at the CGI.pm source. That's probably the best
example you'll get of parsing CGI parameters, etc.
What's your aversion to using a module? If it's because
you want to learn how to do it yourself, that's great--
but if you're just reinventing the wheel for the sake of
doing so, you should rethink.