Perl Cd Bookshelf [Electronic resources]

نسخه متنی -صفحه : 875/ 223
نمايش فراداده

8.175. Pod::ParseLink

Parses an L<> formatting code in POD text. It implements a single function, parselink(), which takes the text of an L<> formatting code and parses it. parselink() returns the anchor text for the link, the anchor text possibly inferred from the name and section, the name or URL, and the section and the type of link. The link type will be url, pod, or man. For example:

#!/usr/local/bin/perl -w use Pod::ParseLink; my $link = 'L<http://www.some-site.com/indexes/1l>'; my ($text, $inferred, $name, $section, $type) = parselink ($link);


8.174. Pod::Html8.176. Pod::Text


Copyright © 2002 O'Reilly & Associates. All rights reserved.