I'll link this reply to a previous thread discussing the theory behind a continuous session with: A Perl Daemon.
The "mod_perl" facility for the Apache web server does support some of this notion, though how much it caches and how much it flushes per script, I don't really know.