Skip Menu |

This queue is for tickets about the Pod-Inherit CPAN distribution.

Report information
The Basics
Id: 81896
Status: resolved
Worked: 1 hour (60 min)
Priority: 0/
Queue: Pod-Inherit

People
Owner: BBYRD [...] cpan.org
Requestors: ribasushi [...] leporine.io
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: (no value)
Fixed in: (no value)



Subject: Pod::Tree vs Pod::POM
The "link-scan" as implemented by the optional Pod::Tree is also implementable as Pod::POM (albeit with a weirder API). It would be rather nice to use one podparser for everything.
On Tue Dec 11 03:25:22 2012, RIBASUSHI wrote: Show quoted text
> The "link-scan" as implemented by the optional Pod::Tree is also > implementable as Pod::POM (albeit with a weirder API). It would be > rather nice to use one podparser for everything.
Yeah, I thought of that, but I was mostly cargo culting your example. Lazy, I know, but I'm not too familiar with either API. Do you have replacement routine for what Pod::Tree was doing?
On Tue Dec 11 11:04:48 2012, BBYRD wrote: Show quoted text
> On Tue Dec 11 03:25:22 2012, RIBASUSHI wrote:
> > The "link-scan" as implemented by the optional Pod::Tree is also > > implementable as Pod::POM (albeit with a weirder API). It would be > > rather nice to use one podparser for everything.
> > Yeah, I thought of that, but I was mostly cargo culting your example. > Lazy, I know, but I'm not too familiar with either API. > > Do you have replacement routine for what Pod::Tree was doing?
I will try to get something, but I am not faimiliar with Pod::POM. Perhaps James can provide a solution quicker? (theorbtwo on irc)
Nevermind, it's in the frelling SYNOPSIS (plus some other code elsewhere to get all =head# elements): use Pod::POM; my $parser = Pod::POM->new; my $pom = $parser->parse_file('ResultClass.pod') || die $parser->error(); foreach my $item ($pom->content) { next unless ($item->type =~ /head/i); print $item->title, "\n"; }
Fixed in repo; will push to CPAN sometime today.
On Wed Dec 12 10:01:46 2012, BBYRD wrote: Show quoted text
> Fixed in repo; will push to CPAN sometime today.
Ugh - it's still broken actually: https://metacpan.org/source/BBYRD/Pod-Inherit-0.90/lib/Pod/Inherit.pm#L383
On Fri Dec 14 12:29:08 2012, RIBASUSHI wrote: Show quoted text
> On Wed Dec 12 10:01:46 2012, BBYRD wrote:
> > Fixed in repo; will push to CPAN sometime today.
> > Ugh - it's still broken actually: > https://metacpan.org/source/BBYRD/Pod-Inherit-
0.90/lib/Pod/Inherit.pm#L383 Dammit... Will correct that.
Fixed in 0.91.