Pod::ParseLink - Online Linux Manual PageSection : 3
Updated : 2023-01-20
Source : perl v5.36.0
Note : User Contributed Perl Documentation
NAMEPod::ParseLink − Parse an L<> formatting code in POD text
SYNOPSIS use Pod::ParseLink;
my $link = get_link();
my ($text, $inferred, $name, $section, $type) = parselink($link);
DESCRIPTIONThis module only provides a single function, parselink(), which takes the text of an L<> formatting code and parses it. It returns the anchor text for the link (if any was given), the anchor text possibly inferred from the name and section, the name or URL, the section if any, and the type of link. The type will be one of \*(C`url\*(C'\fR, \f(CW\*(C`pod\*(C'\fR, or \f(CW\*(C`man\*(C'\fR, indicating a URL, a link to a POD page, or a link to a Unix manual page. Parsing is implemented per perlpodspec. For backward compatibility, links where there is no section and name contains spaces, or links where the entirety of the link (except for the anchor text if given) is enclosed in double-quotes are interpreted as links to a section (L</section>). The inferred anchor text is implemented per perlpodspec: L<name> => L<name|name>
L</section> => L<"section"|/section>
L<name/section> => L<"section" in name|name/section>
The name may contain embedded E<> and Z<> formatting codes, and the section, anchor text, and inferred anchor text may contain any formatting codes. Any double quotes around the section are removed as part of the parsing, as is any leading or trailing whitespace. If the text of the L<> escape is entirely enclosed in double quotes, it's interpreted as a link to a section for backward compatibility. No attempt is made to resolve formatting codes. This must be done after calling parselink() (since E<> formatting codes can be used to escape characters that would otherwise be significant to the parser and resolving them before parsing would result in an incorrect parse of a formatting code like: L<verticalE<verbar>barE<sol>slash>
which should be interpreted as a link to the \*(C`vertical|bar/slash\*(C'\fR POD page and not as a link to the \*(C`slash\*(C'\fR section of the \f(CW\*(C`bar\*(C'\fR POD page with an anchor text of \*(C`vertical\*(C'\fR. Note that not only the anchor text will need to have formatting codes expanded, but so will the target of the link (to deal with E<> and Z<> formatting codes), and special handling of the section may be necessary depending on whether the translator wants to consider markup in sections to be significant when resolving links. See perlpodspec for more information.
AUTHORRuss Allbery <rra@cpan.org>
COPYRIGHT AND LICENSECopyright 2001, 2008, 2009, 2014, 2018−2019, 2022 Russ Allbery <rra@cpan.org> This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSOPod::Parser The current version of this module is always available from its web site at <https://www.eyrie.org/~eagle/software/podlators/>. 0
Johanes Gumabo
Data Size : 9,004 byte
man-Pod::ParseLink.3pmBuild : 2024-12-29, 07:25 :
Visitor Screen : x
Visitor Counter ( page / site ) : 3 / 256,347
Visitor ID : :
Visitor IP : 18.226.180.158 :
Visitor Provider : AMAZON-02 :
Provider Position ( lat x lon ) : 39.962500 x -83.006100 : x
Provider Accuracy Radius ( km ) : 1000 :
Provider City : Columbus :
Provider Province : Ohio , : ,
Provider Country : United States :
Provider Continent : North America :
Visitor Recorder : Version :
Visitor Recorder : Library :
Online Linux Manual Page : Version : Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page : Library : lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page : Library : lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base : Version : Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base : Library : lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36
Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.
ERROR : Need New Coding : (parse_manual_page_|252|Pod::ParseLink.3pm|24/25|el══─{─══.|.el══─{─══. ds C`
) (htmlprn|149|Pod::ParseLink.3pm|24/25|.el══─{─══. ds C` |.el══─{─══. ds C`
) (parse_manual_page_|252|Pod::ParseLink.3pm|27|br══─}─══|'br══─}─══
) (htmlprn|149|Pod::ParseLink.3pm|27|'br══─}─══ |'br══─}─══
) (rof_escape_sequence|91|Pod::ParseLink.3pm|78|\*(C`url\*(C'\fR, \f(CW\*(C`pod\*(C'\fR, or \f(CW\*(C`man\*(C'\fR, |and the type of link. The type will be one of \f(CW\*(C`url\*(C'\fR, \f(CW\*(C`pod\*(C'\fR, or \f(CW\*(C`man\*(C'\fR,
) (rof_escape_sequence|91|Pod::ParseLink.3pm|113|\*(C`vertical|bar/slash\*(C'\fR POD page |which should be interpreted as a link to the \f(CW\*(C`vertical|bar/slash\*(C'\fR POD page
) (rof_escape_sequence|91|Pod::ParseLink.3pm|114|\*(C`slash\*(C'\fR section of the \f(CW\*(C`bar\*(C'\fR POD page with an |and not as a link to the \f(CW\*(C`slash\*(C'\fR section of the \f(CW\*(C`bar\*(C'\fR POD page with an
) (rof_escape_sequence|91|Pod::ParseLink.3pm|115|\*(C`vertical\*(C'\fR. Note that not only the anchor text will need to |anchor text of \f(CW\*(C`vertical\*(C'\fR. Note that not only the anchor text will need to
)