Thread Can't locate object method "ctx"
(2 answers)
Opened by condor at 2007-11-23 22:26
Hallo Leute,
ich teste gerade Apache2::Filter doch leider komme ich nicht sehr weit weil perl die Methode ctx nicht findet. Doch in allen Perl Beispeilen die ich finde ist wird diese Methode genutzt. Kann ir wer helfen? Danke - Bernd Fehler im error.log von Apache2: __ Can't locate object method "ctx" via package "Apache2::RequestRec" at /var/www/portal/Portal/MainFilter.pm line 11.\n __ Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 package Portal::MainFilter; use strict; use warnings; use Apache2::Filter (); use Apache2::RequestRec (); use Apache2::RequestIO (); use Apache2::Const -compile => qw(OK); sub handler { my $filter = shift; my $ctx = $filter->ctx; # unless ($filter->ctx) { # init($filter); # $filter->ctx(1); # } return Apache2::Const::OK; } 1; |