in reply to CGI::Application musings

In addition to the excellent suggestions you've already received, why are you putting all your runmodes in one class? Each C::A child should have between 4-10 runmodes with 12 being an absolute maximum. My average is around 5, my low is 2, and my high is 11.

Those classes each represent one subsystem of your overall web application. If you find you're needing more runmodes than 12, then you should either consolidate some of the runmodes by abstracting out shared functionality or you should split some runmodes off into another class so that they're consolidated by functionality.


  • In general, if you think something isn't in Perl, try it out, because it usually is. :-)
  • "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"