D.J. Miller II wrote: > Howdy, > > I'm trying to find out if Perl 5.6.1 INIT blocks are supported by > mod_perl. By "supported," I mean that the INIT blocks are executed each > time the scripts containing them are run under mod_perl, not just at > compilation time like BEGIN blocks.
In fact they aren't supported at all, when you try to run them from inside requests -- you will get an error: Too late to run INIT block at ... > In the "ToDo" file of the mod_perl 1.26 distribution I find: > > --------------------------------------------------------------------------- > POSSIBLE NEW FEATURES > --------------------------------------------------------------------------- > > - require +ExecCGI for <Perl> in .htaccess, etc. > > [...] > > - CHECK blocks? [Michael J Schout <[EMAIL PROTECTED]>] > INIT blocks? [T.J. Mather <[EMAIL PROTECTED]>] > > In the 1.27 distribution there's no "ToDo" file, but no mention of INIT > or CHECK block support in the "Changes" file, either. ToDo has moved into the STATUS file. __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com