mixing cgi-bin mod_perl

2001-12-20 Thread Miroslav Madzarevic
The scenario: There are two folders /cgi-binwith plain perl cgi /mod-perl with Apache::Registry scripts The application is being moved from cgi to mod_perl (Apache::Registry) one script at a time. My friend has a strange idea. He wants to mix cgi-bin mod_perl by testing all of

Re: mixing cgi-bin mod_perl

2001-12-20 Thread Thomas Eibner
On Thu, Dec 20, 2001 at 09:41:31PM +0100, Miroslav Madzarevic wrote: The scenario: There are two folders /cgi-binwith plain perl cgi /mod-perl with Apache::Registry scripts The application is being moved from cgi to mod_perl (Apache::Registry) one script at a time. My

Re: mixing cgi-bin mod_perl

2001-12-20 Thread Perrin Harkins
He wants to mix cgi-bin mod_perl by testing all of the scripts in cgi-bin and putting one cgi-script at a time into mod-perl folder. A very simple way to do this is to use Location directives to add them to PerlRun one at a time: Location /cgi-bin/some_scr.pl SetHandler perl-script

Re: mixing cgi-bin mod_perl

2001-12-20 Thread Paul Lindner
On Thu, Dec 20, 2001 at 09:41:31PM +0100, Miroslav Madzarevic wrote: The scenario: There are two folders /cgi-binwith plain perl cgi /mod-perl with Apache::Registry scripts The application is being moved from cgi to mod_perl (Apache::Registry) one script at a time. My

Re: mixing cgi-bin mod_perl

2001-12-20 Thread Luciano Miguel Ferreira Rocha
I would just use: find . -type f -print0 | xargs -0 perl -spi -e 's/cgi-bin\/some_scr.pl/mod-perl\/some_scr.pl/g;' Regards, Luciano Rocha -- Luciano Rocha, [EMAIL PROTECTED] The trouble with computers is that they do what you tell them, not what you want. -- D. Cohen

Re: mixing cgi-bin mod_perl

2001-12-20 Thread Randal L. Schwartz
Luciano == Luciano Miguel Ferreira Rocha [EMAIL PROTECTED] writes: Luciano I would just use: Luciano find . -type f -print0 | xargs -0 perl -spi -e 's/cgi-bin\/some_scr.pl/mod-perl\/some_scr.pl/g;' Ewww. Why two processes? use File::Find; @ARGV = (); find sub { push @ARGV,

Re: mixing cgi-bin mod_perl

2001-12-20 Thread Luciano Miguel Ferreira Rocha
On Thu, Dec 20, 2001 at 03:16:48PM -0800, Randal L. Schwartz wrote: Luciano find . -type f -print0 | xargs -0 perl -spi -e 's/cgi-bin\/some_scr.pl/mod-perl\/some_scr.pl/g;' Ewww. Why two processes? Because I would rather type only a single line to do what a 8 line program will do. What's

Re: mixing cgi-bin mod_perl

2001-12-20 Thread Hans Poo
El Jue 20 Dic 2001 20:46, Luciano Miguel Ferreira Rocha escribió: On Thu, Dec 20, 2001 at 03:16:48PM -0800, Randal L. Schwartz wrote: Luciano find . -type f -print0 | xargs -0 perl -spi -e 's/cgi-bin\/some_scr.pl/mod-perl\/some_scr.pl/g;' Ewww. Why two processes? Because I would

Re: mixing cgi-bin mod_perl

2001-12-20 Thread Luciano Miguel Ferreira Rocha
On Thu, Dec 20, 2001 at 09:29:26PM -0300, Hans Poo wrote: I think Randall is just trying to show a cool application of File::Find, and int the menatime save some CPU and memory cycles. Sorry, I didn't mean to be or sound harsh... My apologies to Randall and everybody on this list