use Pod::POM; use Pod::POM::View::Text; my $view = Pod::POM::View::Text->new(); my $parser = Pod::POM->new(); # parse from text or file my $pom = $parser->parse_file(__FILE__) || die $parser->error(); # examine any warnings raised for my $warning ($parser->warnings()) { warn $warning, "\n"; } #use Data::Dumper; die Dumper $pom; # in case you wanna know what it looks like for my $head1 ($pom->head1()) { if( $head1->title() =~ /Popcorn app/i ) { print $head1->present($view); # display as text ## same thing # print $view->print($head1); # print Pod::POM::View::Text->print($head1); last;# bust out of the for loop } } __DATA__ =head1 Butter app Butter app does this'n'that, and this'n'this =head2 Options blah blah =head1 Popcorn app Popcorn app does this'n'that, and this'n'this =head2 Options blah blah =head1 Fudge app Fudge app does this'n'that, and this'n'this =head2 Options blah blah =cut