I've written a website in Perl. It has a root handler, that all HTTP requests are sent to.
This root handler then processes the request, and things like cookies, POST and GET vars, etc, then chooses a sub-handler and forwards the request on to that.
Because the root handler includes all the sub handlers, and all the sub handlers include all the modules they require, I'm basically processing the entire code base on every request. If we weren't using mod_perl I'd be a bit concerned about this.
But is this still the wrong way to do things? Should I remove the root handler and jump straight to the sub handler?
Thanks