Re: perl -c fails with FilterSnoop example in docs

"Randolf Richardson" <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Organization Inter-Corporate Computer & Network Services
Message-ID <[email protected]>
> 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 - [email protected]
Inter-Corporate Computer & Network Services, Inc.
Vancouver, British Columbia, Canada
http://www.inter-corporate.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.