diff options
author | Tim Bunce <Tim.Bunce@ig.co.uk> | 1997-06-11 12:00:00 +1200 |
---|---|---|
committer | Tim Bunce <Tim.Bunce@ig.co.uk> | 1997-06-11 12:00:00 +1200 |
commit | 3e3baf6d63945cb64e829d6e5c70a7d00f3d3d03 (patch) | |
tree | 0143be655536dc428f4fa3cc7d01f6bcffe14c01 /pod/splitpod | |
parent | 08aa1457cd52a368c210ab76a3da91cfadabea1a (diff) | |
parent | 3458556dd685b1767b760a72bd2e9007b5c4575e (diff) | |
download | perl-3e3baf6d63945cb64e829d6e5c70a7d00f3d3d03.tar.gz |
[differences between cumulative patch application and perl5.004_01]perl-5.004_01
[editor's note: The changes between this and 5.004 were processed from
the m1t2 release, which was a bad idea as it was the _01 release which
had the final corrected attributions. The differences between the
various m*t* releases do that; I considered it most valuable just to
look at the _NN releases. Many patches have been separated out and/or
applied from the p5p archives nonetheless.]
Diffstat (limited to 'pod/splitpod')
-rwxr-xr-x | pod/splitpod | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pod/splitpod b/pod/splitpod index 8db4060370..889dfa215a 100755 --- a/pod/splitpod +++ b/pod/splitpod @@ -18,7 +18,7 @@ while (<>) { } else { #s,L</,L<POSIX/,g; s,L</,L<perlfunc/,g; - $pod{$cur} .= $_ if $cur; + push @{$pod{$cur} ||= []}, $_ if $cur; } } @@ -27,6 +27,12 @@ for $f ( keys %syn ) { $flavor = $Flavor{$f}; $orig = $f; ($name = $f) =~ s/\W//g; + # deal with unbalanced =over and =back cause by the split + my $body = $pod{$orig}; + my $has_over = $body =~ /^=over/; + my $has_back = $body =~ /^=back/; + $body =~ s/^=over\s*//m if $has_over and !$has_back; + $body =~ s/^=back\s*//m if $has_back and !$has_over; open (POD, "> $name.pod") || die "can't open $name.pod: $!"; print POD <<EOF; =head1 NAME @@ -39,7 +45,7 @@ $syn{$orig} =head1 DESCRIPTION -$pod{$orig} +$body EOF |