Re: help on setting up a PerlFixupHandler

2003-08-14 Thread Christopher Grau
On Wed, Aug 06, 2003 at 08:24:30PM +0200, Xavier Noria wrote: To fix that, is it safe to change the test to defined $r-content_type and $r-content_type ne 'text/html'; or is there a better way? I usually don't concern myself with the previous content type when writing Location-based

Re: Mod_perl how to include the result of mod_autoindex?

2003-08-12 Thread Christopher Grau
On Mon, Aug 11, 2003 at 08:37:19AM -0700, Coexec wrote: The end user will submit a form. One of the values in that form will be a path on the local web server. So in the return of the CGI, I want to include the results of Apache's autoindex. I cannot figure out how to do it. If I could

Re: help on setting up a PerlFixupHandler

2003-08-08 Thread Christopher Grau
On Wed, Aug 06, 2003 at 07:41:20PM +0200, Xavier Noria wrote: package Dispatcher; use Apache::Constants ':common'; sub handler { my $r = shift; return DECLINED if $r-content_type ne 'text/html'; return SERVER_ERROR unless $r-can_stack_handlers;

Re: AUTOLOAD in mod_perl (was Re: When perl is not quite fastenough)

2002-12-17 Thread Christopher Grau
I may be veering off-topic, but I've started doing similar things in my own code (generating accessor methods via AUTOLOAD). I ended up writing `Class::Autoload,' which I intend to upload to CPAN when I'm done with documentation and testing. Basically, it exports an AUTOLOAD function that will

Re: [RFC] Apache::LDAP

2002-12-01 Thread Christopher Grau
it. Others may disagree. -- Christopher Grau [EMAIL PROTECTED]

Re: Subroutine main redefined?

2002-11-25 Thread Christopher Grau
On Mon, 2002-11-25 at 08:33, Jan Theofel wrote: [Sun Nov 24 17:59:45 2002] shop.pl: Subroutine main redefined at /home/www/[...]/shop/engine/shop.pl line 19. This is a warning, not an error. Ok, but why do I get this warning? I don't redefine the sub. I think you are getting the

Problem using variable with @PerlSetVar

2002-11-22 Thread Christopher Grau
Hi, I have a fairly simple problem, but haven't had much luck finding the solution on Google or the mailing list archives. Basically, I have this code in httpd.conf: Perl print Enter some value you don't want written down: ; my $value = STDIN; chomp $value; print value =