summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control/HashCore.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Dpkg/Control/HashCore.pm')
-rw-r--r--scripts/Dpkg/Control/HashCore.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/Dpkg/Control/HashCore.pm b/scripts/Dpkg/Control/HashCore.pm
index 3128f788c..04cbdee9b 100644
--- a/scripts/Dpkg/Control/HashCore.pm
+++ b/scripts/Dpkg/Control/HashCore.pm
@@ -510,8 +510,8 @@ sub DELETE {
sub FIRSTKEY {
my $self = shift;
my $parent = $self->[1];
- foreach (@{$parent->{in_order}}) {
- return $_ if exists $self->[0]->{lc($_)};
+ foreach my $key (@{$parent->{in_order}}) {
+ return $key if exists $self->[0]->{lc $key};
}
}
@@ -519,11 +519,11 @@ sub NEXTKEY {
my ($self, $last) = @_;
my $parent = $self->[1];
my $found = 0;
- foreach (@{$parent->{in_order}}) {
+ foreach my $key (@{$parent->{in_order}}) {
if ($found) {
- return $_ if exists $self->[0]->{lc($_)};
+ return $key if exists $self->[0]->{lc $key};
} else {
- $found = 1 if $_ eq $last;
+ $found = 1 if $key eq $last;
}
}
return;