in reply to Re: Re: How do you feel about mod_perl?
in thread How do you feel about mod_perl?
Yes, if you write your CGI with discipline, you can certainly get it to run unchanged under mod_perl. On the other hand, I've made the same observation about the CGI apps I've downloaded. Lots of people leave out the my's, skip the use strict;, and generally do things in a sloppy manner.
I'm sure I'll eventually download one and have it run under mod_perl without problems. But it's usually easier to just enable mod_cgi rather than debugging someone else's script.
As for developing from scratch, well, "limiting" myself to apache/mod_perl doesn't seem to be that big a loss.
YMMV, of course.
I'd be curious what you mean by "Aside from a few traps due to the way Apache::Registry namespaces compiled scripts". Are you referring to the way it treats modules with the same name found in different places in the directory structure as the same module? Quite a headache when you have 3 developers using the same webserver to work on the same app - 2 want the stable version of a module, 1 wants the version he's hacking on at the moment.
I've had trouble while debugging with mod_perl not picking up changes to modules without a webserver bounce (or setting MaxRequestsPerChild to 1). A couple of my coworkers actually have a
* * * * * /usr/local/apache/bin/apachectl restart
cron job to work around this on their dev boxes.
ED
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: How do you feel about mod_perl?
by blakem (Monsignor) on Nov 09, 2001 at 14:26 UTC | |
by edebill (Scribe) on Nov 12, 2001 at 20:41 UTC | |
by blakem (Monsignor) on Nov 13, 2001 at 00:02 UTC |