On Thu, 5 Oct 2000, Geoffrey Young wrote:
> > package FooTest;
> > use Apache::Constants;
> > use Apache::Reload;
> >
> > sub handler {
> > my $r = shift;
> > $r->send_http_header;
> > print "Args: ", scalar $r->args, "\n";
> > return OK;
> > }
> >
> > 1;
> >
> > Now send a request with the querystring 0 to that handler. I get:
> >
> > Args:
> >
> > No zero. $ENV{QUERY_STRING} contains the zero though.
>
> ok, I see that. Apache::Request seems to handle that condition fine,
> though.
I'm not sure I understand you since Apache::Request is just a subclass of
Apache, it does exactly the same thing:
use Apache::Request;
sub handler {
my $r = Apache::Request->new(shift);
$r->send_http_header;
print "Args: ", scalar $r->args, "\n";
return OK;
}
Outputs the same result.
--
<Matt/>
** Director and CTO **
** AxKit.com Ltd ** ** XML Application Serving **
** http://axkit.org ** ** XSLT, XPathScript, XSP **
** Personal Web Site: http://sergeant.org/ **