http://www.perlmonks.org?node_id=170979


in reply to Multiple tasks in same_script, or multiple_scripts?

If you're going to one-script route, and you don't want anything fancy like CGI::Application, I would definately reccomend AGAINST using a giant if/else structure for your script. Maintaining code like that can be a nightmare. (Trust me, I know. One developer at my company left behind a webapp with a 1000 line if/else structure. Yikes.)

I prefer using a hash of sub references as a dispatch table.