On Tue, Apr 14, 2009 at 01:56:57PM -0400, Perrin Harkins wrote: > On Tue, Apr 14, 2009 at 1:34 PM, Roberto C. Sánchez > <robe...@connexer.com> wrote: > > On Tue, Apr 14, 2009 at 01:21:09PM -0400, Perrin Harkins wrote: > >> On Tue, Apr 14, 2009 at 12:48 PM, Roberto C. Sánchez > >> <robe...@connexer.com> wrote: > >> > As far as loading the module, I have tried: > >> > > >> > - "PerlModule Example::Image" in .htaccess > >> > - "use Example::Image;" in the main HTML::Mason component > >> > >> Either of those should be ok. If you decide to export the sub later, > >> you'd need to call it from Mason. > >> > > I'm not sure what you mean by this. > > Well, read up about exporting and then it should make more sense. > Perl has namespaces, and when you export a sub you need to export it > to the namespace where you want to call it, which is Mason in this > case. >
So, on a lark I tried moving the "PerlModule Example::Image" from the .htacess file to the virtual host configuration. I then restarted apache. So far, it seems to have been working for several days. In the past, the problem would usually manifest itself within 8 hours or so of an apache restart. Could this have something to do with threading? Regards, -Roberto -- Roberto C. Sánchez http://people.connexer.com/~roberto http://www.connexer.com
signature.asc
Description: Digital signature