Probably the BIGGEST mod_perl pitfall is variable scoping/initialization.

I recommend that you try to

use strict;

whenever possible.... ESPECIALLY in mod_perl.

----- Original Message ----- 
From: "Anton Permyakov" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 12:15 AM
Subject: Moving from CGI to mod_perl


> Hi, all.
> 
> I have perl CGI-script, and i wanna run it as mod_perl script.
> 
> Is it enought to correctly edit only httpd.conf, or i've to add something
> special in my CGI-script? Maybe something like
> 
> use Apache::Registry;
> 
> or something else....
> 
> Also is it needed to write some special script like startup.pl or not?
> 
> Thank you all, and sorry for this "easy question"...
> In doc i could not find "How to migrate from CGI to mod_perl" - step by step
> easy example.
> 
> Good luck,
> Anton Permyakov.

Reply via email to