summaryrefslogtreecommitdiff
path: root/installhtml
diff options
context:
space:
mode:
authorAristotle Pagaltzis <pagaltzis@gmx.de>2015-12-09 00:36:38 +0100
committerAristotle Pagaltzis <pagaltzis@gmx.de>2015-12-09 00:36:38 +0100
commit7e7b3f792cd41d2ef1db134775922f4fba336b40 (patch)
treed6b90c87e2ea94a122498c7be96a9d6566e7799c /installhtml
parent73e3ba067fbc513091128243c6c002d95b0c1bc5 (diff)
downloadperl-7e7b3f792cd41d2ef1db134775922f4fba336b40.tar.gz
improve my rewrite of installhtml’s dir scan
Diffstat (limited to 'installhtml')
-rw-r--r--installhtml12
1 files changed, 6 insertions, 6 deletions
diff --git a/installhtml b/installhtml
index 3b1eda8c6b..06342a8425 100644
--- a/installhtml
+++ b/installhtml
@@ -500,12 +500,12 @@ sub installdir {
no_upwards($_) or next;
my $is_dir = -d "$podroot/$dir/$_";
next if $is_dir and not $recurse;
- my $target = (
- $is_dir ? \@dirlist :
- s/\.pod$// ? \@podlist :
- s/\.pm$// ? \@pmlist :
- undef
- );
+ my $target
+ = $is_dir ? \@dirlist
+ : s/\.pod$// ? \@podlist
+ : s/\.pm$// ? \@pmlist
+ : undef
+ ;
push @$target, "$dir/$_" if $target;
}