I think you remember the fact that if you do
for my $item (@array) {
...
}
then adding or removing elements in the middle @array(for example, using splice) is not allowed, and the result, if you try, is undefined. In fact, in the old days, you could actually bring down perl this way.
, keys, , , . , ,
for my $key (keys %hash) {
$hash{lc $key} = delete $hash{$key};
}
100% , . , , perl 5.6.1 ( 2001 .), , " " perlfunc, , , .
$key , - , %hash.