in reply to In CGI::Application cgiapp_prerun vs. cgiapp_init?
The main difference is that cgiapp_init() is called once by new, while cgiapp_prerun() is called everytime a request comes in. In a standard CGI environment, both will always happen, but in a modperl environment, cgiapp_init() will only happen when the server first starts.
The order of operation in a CGI::Application is basically:
cgiapp_init() and setup() are called in the class's new() method, while the remaining hooks are run in the class's run() method.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: In CGI::Application cgiapp_prerun vs. cgiapp_init?
by weierophinney (Pilgrim) on Dec 12, 2005 at 17:35 UTC | |
|
Re^2: In CGI::Application cgiapp_prerun vs. cgiapp_init?
by saberworks (Curate) on Jul 17, 2012 at 20:52 UTC | |
by Anonymous Monk on Jul 18, 2012 at 01:21 UTC | |
by saberworks (Curate) on Aug 01, 2012 at 22:48 UTC | |
by Anonymous Monk on Sep 08, 2013 at 21:04 UTC |