Text::TOC::Filter::Anon - Node filter wrapper for subroutine references
version 0.10
my $filter = Text::TOC::Filter::Anon->new( code => sub {...} ); if ( $filter->node_is_interesting($node) ) {...}
This class wraps a subroutine reference with the Filter role API.
This class provides the following methods:
This method accepts one parameter, code, which must be a subroutine reference. That subroutine will be called with a single argument, some sort of node object. The specific type of object will depend on the type of source document being examined.
code
This class implements the Text::TOC::Role::Filter role.
Dave Rolsky <autarch@urth.org>
This software is copyright (c) 2012 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Text::TOC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::TOC
CPAN shell
perl -MCPAN -e shell install Text::TOC
For more information on module installation, please visit the detailed CPAN module installation guide.