Sounds like a perfect time to get familar with
CGI::Application. It uses the concept of modes (run modes as they call them).
here's a
tutorial (redantigua.com) and
another (perl.com).
--
"
I don't intend for this to take on a political tone. I'm just here for the drugs." --Nancy Reagan