Subject: | Pod::Simple::PullParser cache |
Pod::Simple::PullParser caches first results despite second call to
set_source
Test Code:
perl -E 'use Pod::Simple::PullParser 888; my $parser=
Pod::Simple::PullParser->new; $doc1="=head1 NAME\n\nFOO"; $doc2="=head1
NAME\n\nBAR"; $parser->set_source(\$doc1); say $parser->get_title;
$parser->set_source(\$doc2); say $parser->get_title'
At the very least the second call to set_source should die. A slight
improvement would be to require the source in the constructor. Ideally
a second call to set_source would save instantiating a new object, but
force re-parsing of the POD.