Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Linking from POD (artificial linkrot, Pod::Simple::XHTML bugs)

by Anonymous Monk
on Apr 29, 2014 at 23:14 UTC ( [id://1084405]=note: print w/replies, xml ) Need Help??


in reply to Linking from POD

Try  L<perlre/(?E<verbar>pattern)> although it doesn't work in my local test (not surprising given the real id generated, see below )

 perl -MPod::Simple::XHTML -e " exit Pod::Simple::XHTML->filter(shift)->any_errata_seen " links.pod > links.html

Apparently Pod::Simple::XHTML is what metacpan uses, so its what needs patching

Some thoughts on that who edits p3rl.org? link fixer idea, pod link anchors mangled (spaces to dashes) · Issue #988 · CPAN-API/metacpan-web · GitHub

FWIW, a desperation move IMHO (since pod should just work, and this isn't guaranteed to be futureproof)

=for html <a href="https://metacpan.org/pod/perlre#pattern1">(?|patter +n)</a> =cut
Turning (?|pattern) into id="pattern1" is stupid PITA , its not future proof

Now if pattern) turned into https://metacpan.org/pod/perlre#pattern1 or whatever the link becomes tomorrow, thus avoiding linkrot, I could live with it

But then again (?|pattern) could disappear tomorrow as an actual linkable target/section/item (=head1...) ... Re: Shortcut for referencing specific sections of CPAN documents

Replies are listed 'Best First'.
Re^2: Linking from POD (artificial linkrot, Pod::Simple::XHTML bugs)
by Anonymous Monk on Apr 29, 2014 at 23:16 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1084405]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-24 05:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found