3 use lib '../lib'; # If you haven't installed perl yet.
11 next unless /^=(?!cut)/ .. /^=cut/;
13 if (s/=item (\S+)/$1/) {
14 #$cur = "POSIX::" . $1;
22 push @{$pod{$cur}}, $_ if $cur;
26 for $f ( keys %syn ) {
27 next unless $Type{$f};
28 $flavor = $Flavor{$f};
30 ($name = $f) =~ s/\W//g;
32 # deal with several functions sharing a description
34 $func = $next{$func} until $pod{$func};
35 my $body = join "", @{$pod{$func}};
37 # deal with unbalanced =over and =back cause by the split
38 my $has_over = $body =~ /^=over/;
39 my $has_back = $body =~ /^=back/;
40 $body =~ s/^=over\s*//m if $has_over and !$has_back;
41 $body =~ s/^=back\s*//m if $has_back and !$has_over;
42 open (POD, "> $name.pod") || die "can't open $name.pod: $!";