diff options
Diffstat (limited to 'perl-install/modules.pm')
-rw-r--r-- | perl-install/modules.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/modules.pm b/perl-install/modules.pm index bbc1a04f7..198bc118f 100644 --- a/perl-install/modules.pm +++ b/perl-install/modules.pm @@ -335,8 +335,8 @@ sub text_of_type($) { sub text2driver($) { my ($text) = @_; - while (my ($k, $v) = each %drivers) { - $v->{text} eq $text and return $k; + foreach (keys %drivers) { + $drivers{$_}{text} eq $text and return $_; } die "$text is not a valid module description"; } |