Justin Luster wrote:

> I agree making it lexically scoped would be better.  I've done that with
> all of my other files but this one is used everywhere in the code in a
> global manner and would be a lot of work to change.

Well if you are using a threaded mpm then you can't use globaly file handles. So
you have to pick between the 2. If you're using Windows then using a threaded
mpm is definitely going to give you better performance. So you'll have to choose
between the 2.

> How would I know if I was using: "threaded httpd MPM"?

from http://perl.apache.org/docs/2.0/api/Apache2/MPM.html

  use Apache2::MPM ();

  # check whether Apache MPM is threaded
  if (Apache2::MPM->is_threaded) { do_something() }

> Again, it seems to be working just fine under Mod_Perl 1, any idea why
> things might be different in Mod_Perl 2?

Well, there are were no threaded mpms in Apache 1, so none in mod_perl 1 either.

-- 
Michael Peters
Developer
Plus Three, LP

Reply via email to