summaryrefslogtreecommitdiff
path: root/Debian/Debhelper/Dh_Lib.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-11-19 14:54:23 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-11-19 14:54:23 -0500
commit8ceb2df1b9e3368e765076b23ee0ecd4a2532a46 (patch)
tree00b5e3faf78158e186798f383a1d023b0906021d /Debian/Debhelper/Dh_Lib.pm
parent25d57ca95f7571e13dbba4a0ae82c43d5e0e5a06 (diff)
use foreach instead of for when looping thru array
Diffstat (limited to 'Debian/Debhelper/Dh_Lib.pm')
-rw-r--r--Debian/Debhelper/Dh_Lib.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index c5b06f6..a4e3570 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -576,7 +576,7 @@ sub filedoublearray {
# as if we were in the specified directory, so the
# filenames that come out are relative to it.
if (defined $globdir && ! compat(2)) {
- for (map { glob "$globdir/$_" } split) {
+ foreach (map { glob "$globdir/$_" } split) {
s#^$globdir/##;
push @line, $_;
}