Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Standard Modules > 8.175. Pod::ParseLink

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/index.html>';
my ($text, $inferred, $name, $section, $type) = parselink ($link);

  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint