]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Dh_Lib.pm
use foreach instead of for when looping thru array
[debhelper.git] / Debian / Debhelper / Dh_Lib.pm
index c5b06f69fd546df1509da31b2fab697b1188dd48..a4e357095da2b2afe16d83df1125dd0bdc7e2b5e 100644 (file)
@@ -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, $_;
                        }