Re: Pod::Html's cross referencing of C<> links

[email protected] (Ricardo Signes)
Newsgroups perl.pod-people
Message-ID <[email protected]>
* Marc Green <[email protected]> [2011-05-20T16:24:21]
> links. More specifically, I understand how it resolves L<> links, but I am
> confused as to why you resolve C<> "links". From reading the source, I
> gather that C<> "links" are resolved by searching pod documents for =item
> directives, and storing their text in a global hash.

Marc is referring to comments like this:

my %Pages = ();                 # associative array used to find the location
                                #   of pages referenced by L<> links.
my %Items = ();                 # associative array used to find the location
                                #   of =item directives referenced by C<>
                                #   links

...

# scan_items - scans the pod specified by $pod for =item directives.  we
#  will use this information later on in resolving C<> links.

&c.

-- 
rjbs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.