in reply to Re: Linking to a POD section that is not uniquely named (perl6)
in thread Linking to a POD section that is not uniquely named

By recommending Perl 6 Pod, are you saying that it supports what I want to accomplish?

I did mention Perl 6 Pod in my original post, out of curiosity for the POD vs Perl 6 Pod spec. But I'm writing POD for Perl 5 modules and would prefer solution for Perl 5.

  • Comment on Re^2: Linking to a POD section that is not uniquely named (perl6)

Replies are listed 'Best First'.
Re^3: Linking to a POD section that is not uniquely named (try it to see)
by Anonymous Monk on Nov 29, 2018 at 06:50 UTC

      Ah, okay. Didn't realize the spec is now in perlpodspec. And the spec indeed mentions the case of multiple/ambiguous section:

      This specification does not specify what behavior should be in the case of a given document having several things all seeming to produce the same section identifier (e.g., in HTML, several things all producing the same anchorname in ... elements). Where Pod processors can control this behavior, they should use the first such anchor. That is, L<Foo/Bar> refers to the first "Bar" section in Foo.
      But for some processors/formats this cannot be easily controlled; as with the HTML example, the behavior of multiple ambiguous ... is most easily just left up to browsers to decide.

      So I guess the simplest thing to do on the part of document writer is to make sure section names are unique.