diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-02 17:24:47 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-02 17:24:47 +0000 |
commit | 1fa7ca2533f472688d868610b0745b8fde3528b1 (patch) | |
tree | ef4024e2c81903308e95601dcc0bf8925bd3ab09 /pod/perlmodlib.PL | |
parent | bf8afc63e607fcc7c1b66ceb8d1c6a9f20862f5b (diff) | |
download | perl-1fa7ca2533f472688d868610b0745b8fde3528b1.tar.gz |
perlmodlib tweaks; regen pods.
p4raw-id: //depot/perl@9963
Diffstat (limited to 'pod/perlmodlib.PL')
-rw-r--r-- | pod/perlmodlib.PL | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/pod/perlmodlib.PL b/pod/perlmodlib.PL index 0cdadb76c7..eb419ade40 100644 --- a/pod/perlmodlib.PL +++ b/pod/perlmodlib.PL @@ -1,17 +1,20 @@ #!../miniperl +$ENV{LC_ALL} = 'C'; + open (OUT, ">perlmodlib.tmp") or die $!; -my (@pragma, @mod); +my (@pragma, @mod, @MANIFEST); open (MANIFEST, "../MANIFEST") or die $!; while (<MANIFEST>) { my $filename; next unless s|^lib/|| or m|^ext/|; - ($filename) = /(\S+)/; + ($filename) = m|^(\S+)|; $filename =~ s|^[^/]+/|| if $filename =~ s|^ext/||; - next unless $filename =~ /\.p(m|od)$/; + next unless $filename =~ m!\.p(m|od)$!; next unless open (MOD, "../lib/$filename"); + my ($name, $thing); my $foundit=0; { @@ -23,7 +26,7 @@ while (<MANIFEST>) { } } unless ($foundit) { - warn "$filename missing head1\n"; + warn "$filename missing =head1 NAME (okay if there is respective .pod)\n"; next; } my $title = <MOD>; @@ -42,13 +45,12 @@ while (<MANIFEST>) { next; } + $thing =~ s/^perl pragma to //i; $thing = ucfirst($thing); $title = "=item $perlname\n\n$thing\n\n"; - # print "$perlname $thing\n"; - - if ($filename=~/[A-Z]/) { + if ($filename =~ /[A-Z]/) { push @mod, $title; } else { push @pragma, $title; |