From owner-freebsd-isp Thu Jun 21 22: 6:41 2001 Delivered-To: freebsd-isp@freebsd.org Received: from workhorse.iMach.com (workhorse.iMach.com [206.127.77.89]) by hub.freebsd.org (Postfix) with ESMTP id C5AD437B408 for ; Thu, 21 Jun 2001 22:06:38 -0700 (PDT) (envelope-from forrestc@imach.com) Received: from localhost (forrestc@localhost) by workhorse.iMach.com (8.9.3/8.9.3) with ESMTP id WAA21657; Thu, 21 Jun 2001 22:44:21 -0600 (MDT) Date: Thu, 21 Jun 2001 22:44:20 -0600 (MDT) From: "Forrest W. Christian" To: Ryan Thompson Cc: Sean Chittenden , Troy Settle , freebsd-isp@FreeBSD.ORG Subject: Re: mod_perl In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 21 Jun 2001, Ryan Thompson wrote: > Two things you need to keep in mind: > > 1. Not all Perl source is compatible with mod_perl. Your scripts WILL > break if they are not coded in "the mod_perl way". Many perl scripts NOT > written for mod_perl will not work correctly. (Chances are they will WORK, > but will start to produce WEIRD results like incremental counters that > work fine for awhile, then start spitting out oddball numbers). Your > choice: > * (re)write the CGI for mod_perl > * Don't run the script under mod_perl I will have to say that some scripts written FOR mod_perl can produce WEIRD results. mod_perl scripts are not the easiest things to write, as if you miss reinitializing a variable you're possibly screwed. And you end up with some weird interactions in relation to libraries, such as a script might run just fine as long as another script hasn't ran on the same machine, etc. That said, writing mod_perl isn't all that bad as long as you are careful to do things which you probably should be doing normally, but don't have to. - Forrest W. Christian (forrestc@imach.com) AC7DE ---------------------------------------------------------------------- The Innovation Machine Ltd. P.O. Box 5749 http://www.imach.com/ Helena, MT 59604 Home of PacketFlux Technogies and BackupDNS.com (406)-442-6648 ---------------------------------------------------------------------- Protect your personal freedoms - visit http://www.lp.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message