perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Arnold <>
Subject Hmmmm....
Date Sat, 10 Jul 2004 22:16:29 GMT

I am not used to seeing this behavior, so I thought I'd ask. I make a
change to my httpd.conf:

PerlModule ModPerl::Rules2
<Location /mod_perl_rules2>
        SetHandler perl-script
        PerlHandler ModPerl::Rules2
        PerlSendHeader On

Then I try to restart server:

[root@scinux apache]# bin/apachectl graceful
bin/apachectl graceful: configuration broken, ignoring restart
bin/apachectl graceful: (run 'apachectl configtest' for details)
[root@scinux apache]# bin/apachectl configtest
Syntax error on line 971 of /usr/local/apache/conf/httpd.conf:
Can't use global $= in "my" at /home/darnold/modperl//ModPerl/
line 9, near "my $="
syntax error at /home/darnold/modperl//ModPerl/ line 9, near
Global symbol "$f" requires explicit package name at
/home/darnold/modperl//ModPerl/ line 10.
Global symbol "$r" requires explicit package name at
/home/darnold/modperl//ModPerl/ line 11.
Compilation failed in require at (eval 13) line 3.

I am wondering why it's trying to run the file Why doesn't it
just restart then wait to report the error when I attempt to access


package ModPerl::Rules2;
# File: ModPerl/

use strict;
use Apache::Reload;
use Apache::Constants qw(:common);

sub handler {
    my $=shift;
    $r->print("Mod_Perl Rules Bigtime!\n");
    return OK;

Report problems:
Mail list info:
List etiquette:

View raw message