]> git.donarmstrong.com Git - debhelper.git/blobdiff - Debian/Debhelper/Buildsystem.pm
use foreach instead of for when looping thru array
[debhelper.git] / Debian / Debhelper / Buildsystem.pm
index 5b3423e60e6f9542c3e337102ced6a645e8d1677..f729c0da4ac4bd1debdd9c8491b1507b27ddd807 100644 (file)
@@ -169,7 +169,7 @@ sub canonpath {
        my ($this, $path)=@_;
        my @canon;
        my $back=0;
-       for my $comp (split(m%/+%, $path)) {
+       foreach my $comp (split(m%/+%, $path)) {
                if ($comp eq '.') {
                        next;
                }