in reply to How to execute web code on server start only?

That's not how CGI works, so it can't be done. You can potentially "pre-cache" some data in a Storable file, or in a database, or set up some environment variables.

If you want some kind of persistence, you will have to look into mod_perl or FastCGI.

  • Comment on Re: How to execute web code on server start only?