fix perl warnings in remove_entry()
This commit is contained in:
parent
afd7a7a557
commit
699e6b7e62
|
@ -629,11 +629,14 @@ sub is_in {
|
|||
sub remove_entry {
|
||||
my $value = shift;
|
||||
my $array = shift;
|
||||
my $entries = scalar(@{$array});
|
||||
my $i;
|
||||
|
||||
foreach $i (0 .. $#$array) {
|
||||
|
||||
for ($i=0; $i < $entries; $i++) {
|
||||
if (@{$array}[$i] eq $value) {
|
||||
splice(@{$array}, $i, 1);
|
||||
$i--;
|
||||
$entries--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue