1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
package Pod::Abstract::Filter::cut;
use strict;
use warnings;
use base qw(Pod::Abstract::Filter);
our $VERSION = '0.20';
=head1 NAME
Pod::Abstract::Filter::cut - paf command to remove non-processed (cut)
portions of a Pod document.
=cut
sub filter {
my $self = shift;
my $pa = shift;
my @cut = $pa->select("//#cut");
foreach my $cut (@cut) {
$cut->detach;
}
return $pa;
}
=head1 AUTHOR
Ben Lilburne <bnej@mac.com>
=head1 COPYRIGHT AND LICENSE
Copyright (C) 2009 Ben Lilburne
This program is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
1;
|