Re: Moving from CGI to mod_perl
[Please make sure to post follow-ups to the list! Thanks!] Anton Permyakov wrote: 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. http://perl.apache.org/preview/modperl-docs/dst_html/docs/1.0/guide/getwet.html#Porting_Existing_CGI_Scripts_to_run_under_mod_perl __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Moving from CGI to mod_perl
Thank you, Stas. It's really good place to learn about mod_perl. Good luck, Anton - Original Message - From: Stas Bekman [EMAIL PROTECTED] To: Anton Permyakov [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002 1:17 PM Subject: Re: Moving from CGI to mod_perl [Please make sure to post follow-ups to the list! Thanks!] Anton Permyakov wrote: 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. http://perl.apache.org/preview/modperl-docs/dst_html/docs/1.0/guide/getwet.h tml#Porting_Existing_CGI_Scripts_to_run_under_mod_perl __ Stas BekmanJAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide --- http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
Re: Moving from CGI to mod_perl
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.