summaryrefslogtreecommitdiffstats
path: root/perl-install/modules.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r--perl-install/modules.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm
index d036573c7..f8bacd5cd 100644
--- a/perl-install/modules.pm
+++ b/perl-install/modules.pm
@@ -215,9 +215,9 @@ foreach (@drivers_by_category) {
my $l = pop @l;
foreach (keys %$l) { $drivers{$_} = [ $l->{$_}, @l ]; }
}
-foreach (keys %drivers) {
- my %l; @{$l{@drivers_fields}} = @{$drivers{$_}};
- $drivers{$_} = \%l;
+while (my ($k, $v) = each %drivers) {
+ my %l; @l{@drivers_fields} = @$v;
+ $drivers{$k} = \%l;
}