Mark Korey wrote:
> I was once told that in order for mod_perl CGI code to
> work properly all functionality/logic needed to reside
> in a function named "init()". Now that I'm pouring over
> mod_perl documentation & getting things running, I haven't
> found any mention of this.
> 
> So ... is there any special purpose w/in mod_perl for "sub init"?
> or is it just a common naming convention?
> or is it baloney?

There is nothing special about init().

Are you talking about initializing globals? or the closure effect with 
registry? That's two possible issues people may talk about a sub whose 
name can be init() or else.

In your example there is no need for init().


__________________________________________________________________
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

Reply via email to