Re: why would I use mod_perl instead of Perl ?
"o" == ozbcoz [EMAIL PROTECTED] writes: o or is that a "too big" question o I am coding in Perl - not well but adequately (I use PHP for anything o "hard"). Is there a compelling reason to switch to mod_perl ? It depends on how often your perl is called. if it is very infrequently, then it is not worht it, but if perl is used often, you will get a big win. also, if you want to tie into apache's internal phase handlers, mod_perl is a convenient way to do it if you are familiar with perl.
Re: why would I use mod_perl instead of Perl ?
On Thu, 20 Jul 2000, Vivek Khera wrote: o "hard"). Is there a compelling reason to switch to mod_perl ? It depends on how often your perl is called. if it is very infrequently, then it is not worht it, but if perl is used often, you will get a big win. never forget the infamous 'perl creep' effect on web sites. if you have one perl script, it will multiply until you are faced with a tribble-like plethora of perl scripts. best to code them with mod_perl early on so you're prepared for it in the future. :) -- Blue Lang Unix Systems Admin QSP, Inc., 3200 Atlantic Ave, Ste 100, Raleigh, NC, 27604 Home: 919 835 1540 Work: 919 875 6994 Fax: 919 872 4015
why would I use mod_perl instead of Perl ?
or is that a "too big" question I am coding in Perl - not well but adequately (I use PHP for anything "hard"). Is there a compelling reason to switch to mod_perl ? Jim Carey
Re: why would I use mod_perl instead of Perl ?
Sure. mod_perl makes it so your web server doesn't have to invoke the Perl interpreter for every single hit. That alone makes mod_perl worth it. There's a lot of other stuff it does, of course, but that's a huge win in itself. Doug On Wed, 19 Jul 2000, ozbcoz wrote: or is that a "too big" question I am coding in Perl - not well but adequately (I use PHP for anything "hard"). Is there a compelling reason to switch to mod_perl ? Jim Carey
Re: why would I use mod_perl instead of Perl ?
Of course that's a "too big" question. There are tons of great reasons for one to move over to mod_perl, but it all depends on what your specific needs are. Check out some stuff about mod_perl on Apache's site and see if that's of any relevance to what you are working on. If you decide it's great for you and you want to move over, Welcome! :) -Pramod At 07:31 AM 7/19/00 +1000, ozbcoz wrote: or is that a "too big" question I am coding in Perl - not well but adequately (I use PHP for anything "hard"). Is there a compelling reason to switch to mod_perl ? Jim Carey
Re: why would I use mod_perl instead of Perl ?
Is there any difference in the way I'd have to write my perl scripts if using mod_perl? I have a small commercial web server, run a perl web ring and talk list program on it as well as several other small perl applications. It sounds to me like installing mod-perl would decrease the overhead on my processor, but I simply don't have the time to go through and rewrite all those scripts. Glen On Tue, 18 Jul 2000 [EMAIL PROTECTED] wrote: Sure. mod_perl makes it so your web server doesn't have to invoke the Perl interpreter for every single hit. That alone makes mod_perl worth it. There's a lot of other stuff it does, of course, but that's a huge win in itself. Doug On Wed, 19 Jul 2000, ozbcoz wrote: or is that a "too big" question I am coding in Perl - not well but adequately (I use PHP for anything "hard"). Is there a compelling reason to switch to mod_perl ? Jim Carey
Re: why would I use mod_perl instead of Perl ?
Is there any difference in the way I'd have to write my perl scripts if using mod_perl? I have a small commercial web server, run a perl web ring You should really glance at the documentation. If you program using strict and don't use global vars then your off to a good start but there's a chance you'll still have to do some minor modifications. If you're just learning Perl, you shoudl look into mod_perl. I've had two programmer under me learn Perl in conjunction with mod_perl and IMO you become a cleaner programmer since you're forced to be more strict. YMMV Jim -- Jim Serio - [EMAIL PROTECTED] Producer, World of Coasters
Re: why would I use mod_perl instead of Perl ?
Here's what our experienced peers have advised me earlier. Thanks guysit's been a great help! Richard Dice says: Your "regular old CGI Perl scripts" are going to be ported to mod_perl most easily using one of 2 different Apache/mod_perl modules: * Apache::Registry * Apache::PerlRun To be _really_ simplistic about it, Apache::Registry is faster, but it is more picky about the quality of your Perl CGI programs, insofar as quality is a measure of ability to hold up in a persistent environment. Apache::PerlRun is slower, but your scripts are going to handle a better chance of working without modification. (Another aspect of how it's slower is that you won't be able to take advantage of Apache::DBI persistent database connections with Apache::PerlRun.) Here are some helpful links from Sta's mod_perl guide online: CGI to mod_perl Porting. mod_perl Coding guidelines. http://perl.apache.org/guide/porting.html Apache::PerlRun http://perl.apache.org/guide/porting.html#Apache_PerlRun_a_closer_look Vivek Khera says: The perl stuff will need to be "cleaned" if it is sloppy code. That is, if it is clean running in Perl under "-w" and "use strict" you're most likely going to have little difficulty with them. But what you should do is use the two-server performance enhancement (using mod_proxy and mod_rewrite) and have your legacy apps run on the front-end server, and then migrate your perl to the mod_perl backend one at a time. Now, isn't that helpful? :) -Pramod At 05:29 PM 7/18/00 -0500, Glen Lee Edwards wrote: Is there any difference in the way I'd have to write my perl scripts if using mod_perl? I have a small commercial web server, run a perl web ring and talk list program on it as well as several other small perl applications. It sounds to me like installing mod-perl would decrease the overhead on my processor, but I simply don't have the time to go through and rewrite all those scripts. Glen On Tue, 18 Jul 2000 [EMAIL PROTECTED] wrote: Sure. mod_perl makes it so your web server doesn't have to invoke the Perl interpreter for every single hit. That alone makes mod_perl worth it. There's a lot of other stuff it does, of course, but that's a huge win in itself. Doug On Wed, 19 Jul 2000, ozbcoz wrote: or is that a "too big" question I am coding in Perl - not well but adequately (I use PHP for anything "hard"). Is there a compelling reason to switch to mod_perl ? Jim Carey