On Mon, 2003-06-02 at 11:36, Issac Goldstand wrote: > I want to assign a method handler from within the Apache::ReadConfig > namespace. Right now, what I have is some function which somewhat > resembles: > > package My::Object; > sub method1 { > my $self=shift; > package Apache::ReadConfig; > no strict; > $Location{'/some/URL/'} = { > Options => '+ExecCGI', > PerlHeaderParserHandler => sub {$self->some_other_method;} > }; > > But when I browse to /some/URL, some_other_method never gets called, let > alone by $self....
What are you trying to do? You know you can only do this sort of thing during server startup, right? After startup, you can still push handlers but you have to do it differently. - Perrin