|
|
| P is for Practical | |
| PerlMonks |
Re: Re: Re: How do you feel about mod_perl?by edebill (Scribe) |
| on Nov 09, 2001 at 04:04 UTC ( [id://124296]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||