This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [h.m.brand@hccnet.nl: Installman problems]
authorRuss Allbery <rra@stanford.edu>
Fri, 16 Nov 2001 09:44:21 +0000 (01:44 -0800)
committerAbhijit Menon-Sen <ams@wiw.org>
Fri, 16 Nov 2001 16:46:39 +0000 (16:46 +0000)
Message-Id: <yln11mwqyy.fsf@windlord.stanford.edu>

p4raw-id: //depot/perl@13052

lib/Pod/ParseLink.pm

index e812f24..cced975 100644 (file)
@@ -55,8 +55,8 @@ sub _parse_section {
     # section.  If there is no section and the name contains spaces, also
     # guess that it's an old section link.
     my ($page, $section) = split (/\s*\/\s*/, $link, 2);
-    $section =~ s/^"\s*(.*?)\s*"$/$1/;
-    if ($page =~ / / && !defined ($section)) {
+    $section =~ s/^"\s*(.*?)\s*"$/$1/ if $section;
+    if ($page && $page =~ / / && !defined ($section)) {
         $section = $page;
         $page = undef;
     } else {