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
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.
> 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 directives to add them to
PerlRun one at a time:
SetHandler perl-script
PerlHandler Apache::PerlRun
Options +ExecC
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.
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
> "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 @
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
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
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
Regar