diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-06-13 10:25:12 +0100 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-06-13 11:47:10 +0100 |
commit | e8041d9b8361b47aafe5f4dc70a7ae9b018574c2 (patch) | |
tree | 59fd999daeed08b8d40149c125617299940242ab /pod/perlmodlib.PL | |
parent | 26ad458aeb6c3166efd1c5144eb908c7a3242226 (diff) | |
download | perl-e8041d9b8361b47aafe5f4dc70a7ae9b018574c2.tar.gz |
In perlmodlib.PL, just open files in their original location.
Trying to munge the file to a path in lib/ and then attempting to open that
first doesn't gain anything.
Diffstat (limited to 'pod/perlmodlib.PL')
-rw-r--r-- | pod/perlmodlib.PL | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/pod/perlmodlib.PL b/pod/perlmodlib.PL index cec7845422..51828c67f5 100644 --- a/pod/perlmodlib.PL +++ b/pod/perlmodlib.PL @@ -35,16 +35,12 @@ my %suppressed = map {$_ => 1} qw( for (@MANIFEST) { my $filename; - next unless s|^lib/|| or m|^ext/|; - my ($origfilename) = ($filename) = m|^(\S+)|; - $filename =~ s|^[^/]+/|| if $filename =~ s|^ext/||; + next unless m|^lib/| or m|^ext/|; + my ($filename) = m|^(\S+)|; next unless $filename =~ m!\.p(m|od)$!; - unless (open (MOD, "../lib/$filename")) { - unless (open (MOD, "../$origfilename")) { - warn "Couldn't open ../$origfilename: $!"; - next; - } - $filename = $origfilename; + unless (open MOD, '<', "../$filename") { + warn "Couldn't open ../$filename: $!"; + next; } |