in reply to One Big Script vs Several Specialized Scripts

Of course there's always mod_perl and Apache::Registry. With Apache::RegistryLoader you could precompile your script when apache starts and there'd be no startup hit when requests come in.

But as a general sugguestion, yes you'd probably be better off splitting functionality off into seperate chunks. Place common code (configuration code, handling authentication, et al) into modules, and then split processing of the different requests into seperate programs.