perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randolf Richardson" <rand...@modperl.pl>
Subject Re: perl -c fails with FilterSnoop example in docs
Date Tue, 22 Feb 2011 23:34:51 GMT
> I copied this useful debugging filter at
> http://perl.apache.org/docs/2.0/user/handlers/filters.html#All_in_One_Filter
> 
> It works fine, but I can't `perl -c` :
> 
> hedges@vm5:~/foo$ perl -c Lame.pm
> Invalid CODE attribute: FilterConnectionHandler at Lame.pm line 26
> BEGIN failed--compilation aborted at Lame.pm line 26.
[sNip]
> sub connection : FilterConnectionHandler { snoop("connection", @_) }
> sub request    : FilterRequestHandler    { snoop("request",    @_) }
[sNip]

	Perhaps this will be of interest to you -- it mentions the need for 
a handler subroutine:

		http://www.perlmonks.org/?node_id=606092

	The above link is part of the following discussion:

		http://www.perlmonks.org/?node_id=606087

	I hope that helps.

Randolf Richardson - randolf@inter-corporate.com
Inter-Corporate Computer & Network Services, Inc.
Vancouver, British Columbia, Canada
http://www.inter-corporate.com



Mime
View raw message