Scott Penrose wrote:
On 05/07/2006, at 5:47, Stas Bekman wrote:

http://perl.apache.org/docs/2.0/user/handlers/ filters.html#HTTP_Request_vs__Connection_Filters


OK Some very weird and interesting problems here. I think they are bugs, but I am not certain.

Firstly - if you write the code... (straight from the example in the POD and URL above)

package MyApache2::FilterRequestFoo;
use base qw(Apache2::Filter);
sub output : FilterRequestHandler {
        my ($f, $bb) = @_;
}
1;

You get this:
~/tmp$ perl -c test.pm
Invalid CODE attribute: FilterRequestHandler at test.pm line 4
BEGIN failed--compilation aborted at test.pm line 6.

You can't test mod_perl modules from the command line, Scott. Only running under a mod_perl interpreter.


--
_____________________________________________________________
Stas Bekman    mailto:[EMAIL PROTECTED] http://stason.org/
MailChannels: Reliable Email Delivery http://mailchannels.com
The "Practical mod_perl" book         http://modperlbook.org/
http://www.linkedin.com/in/stasbekman http://perl.apache.org/
http://stason.org/photos/gallery/     [* best photos here *]

Reply via email to