Litmus:mod perl: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 24: Line 24:


The current mod_perl enabled version of Litmus contains no such loops. Zach has some fancy graphing tools adapted from the Bugzilla project that map the dependency tree and highlights duplicates. If you're trying to resolve a  dependency loop issue, he can get you a copy of the graphing tools.
The current mod_perl enabled version of Litmus contains no such loops. Zach has some fancy graphing tools adapted from the Bugzilla project that map the dependency tree and highlights duplicates. If you're trying to resolve a  dependency loop issue, he can get you a copy of the graphing tools.
== Begin blocks and Litmus->init() ==
While CGI scripts will have any BEGIN{} blocks called at compile-time, mod_perl scripts have BEGIN blocks called only once: when the web server starts up. As such, initialization tasks that must be done for each request must not be done in BEGIN blocks.
Accordingly, Litmus.pm provides an init() method to handle authentication and other tasks that happen at the beginning of script execution. All CGI scripts **must** called Litmus->init(); prior to sending a content-type header or performing any other tasks for these initialization tasks to occur.
314

edits

Navigation menu