http://www.perlmonks.org?node_id=986946


in reply to Shortcut for referencing specific sections of CPAN documents

Hi

mod is broken , anchors don't work at all, and the module name gets query escaped

doc is broken, anchors don't work right (haven't for very long time), and at one point perldoc.perl.org has updated the way anchor names are generated (dashes instead of underscores or space, but my memory is fuzzy), breaking lots of existing anchor links

Example  [doc://perlintro#String comparison], [doc://perlintro#String-comparison] -> String comparison, String comparison

I prefer href://, esp http://search.cpan.org/perldoc/Text::CSV#print because the module name doesn't get escaped (the :: still look like ::)

http://metacpan.org/module/Text::CSV#print is also good, but I stick with /perldoc/ because of (tools and dist) http://search.cpan.org/tools/CGI and http://search.cpan.org/dist/illguts/index.html

Speaking of bugs and broken links

I don't seen why the old perlop headings/anchors like s/PATTERN/REPLACEMENT/egimosx got dropped -- even s/PATTERN/REPLACEMENT/ and especially s/// ought to work, you never know what a new version of perl will bring, the old links ought to work

So fixing mod://, its a good idea, I prefer /perldoc/

Fixing doc:// would break some existing links, might require a heavyhanded solution (live test links, find nearest matching anchor, cache the results )