summaryrefslogtreecommitdiff
path: root/pod/perlmodlib.PL
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-06-13 10:25:12 +0100
committerNicholas Clark <nick@ccl4.org>2009-06-13 11:47:10 +0100
commite8041d9b8361b47aafe5f4dc70a7ae9b018574c2 (patch)
tree59fd999daeed08b8d40149c125617299940242ab /pod/perlmodlib.PL
parent26ad458aeb6c3166efd1c5144eb908c7a3242226 (diff)
downloadperl-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.PL14
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;
}