Pod::Simple::PullParser(3p) Perl Programmers Reference Guide
Pod::Simple::PullParser(3p) Perl Programmers Reference Guide # Pod::Simple::PullParser(3p) Perl Programmers Reference Guide NNAAMMEE # Pod::Simple::PullParser -- a pull-parser interface to parsing Pod SSYYNNOOPPSSIISS # my $parser = SomePodProcessor->new; $parser->set_source( "whatever.pod" ); $parser->run; Or: my $parser = SomePodProcessor->new; $parser->set_source( $some_filehandle_object ); $parser->run; Or: my $parser = SomePodProcessor->new; $parser->set_source( \$document_source ); $parser->run; Or: my $parser = SomePodProcessor->new; $parser->set_source( \@document_lines ); $parser->run; And elsewhere: require 5; package SomePodProcessor; use strict; use base qw(Pod::Simple::PullParser); sub run { my $self = shift; Token: while(my $token = $self->get_token) { . ...