This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Fix broken splitpod program
authorSteve Hay <SteveHay@planit.com>
Mon, 29 Sep 2003 11:50:23 +0000 (12:50 +0100)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 29 Sep 2003 11:14:27 +0000 (11:14 +0000)
Message-ID: <3F780E6F.3020704@uk.radan.com>

p4raw-id: //depot/perl@21386

pod/splitpod

index 0e93633..ff60ddc 100755 (executable)
@@ -11,14 +11,13 @@ while (<>) {
     next unless /^=(?!cut)/ .. /^=cut/;
 
     if (/=item (\S+)/ and $1 ne '*') {
+       my $item = $1;
        s/=item //; 
-       #$cur = "POSIX::" . $1;
-       $next{$cur} = $1;
-       $cur = $1;
+       $next{$cur} = $item;
+       $cur = $item;
        $syn{$cur} .= $_;
        next;
     } else { 
-       #s,L</,L<POSIX/,g;
        s,L</,L<perlfunc/,g;
        push @{$pod{$cur}}, $_ if $cur;
     }