On Sun, 2004-04-25 at 21:09, Garry Heaton wrote:
> It works but can you explain what value $r receives from 'shift' when no
> argument is supplied via @ARGV?

When you run a script under Apache::Registry, it gets passed an Apache
request object automatically.  That's what you are grabbing with that
shift.  See the Apache::Registry docs for more.

> Also, I was only intending to use
> Apache::Registry to speed-up my CGI scripts but you seem to be using a
> handler approach which I'm not familiar with. Does this mean that  my
> mod_perl is working with handlers but just isn't treating normal CGI
> properly?

It means that something is messing up the standard mod_perl approach of
tie-ing STDOUT, so that your print statements were not sending their
data to mod_perl.  You should probably recompile perl, apache, and
mod_perl.  It may be due to your use of perl 5.8.1RC1, which is not a
production release.  Might as well upgrade to the latest mod_perl 1.x
release while you're at it, since it includes some bug fixes.

- Perrin


-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to