> 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