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
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
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;
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
it. Others may disagree.
--
Christopher Grau [EMAIL PROTECTED]
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
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 =