in reply to hash iteration with each
if you replace
withwhile (my ($key, $value) = each %hash) {
, it will behave as you want, without risk of nasty side-effects.foreach my $key (keys %hash) { my $value=$hash{$key};
(Which begs an efficiency question. Unfortunately, I'm not qualified to answer that one.)
--
Tommy
Too stupid to live.
Too stubborn to die.
|
---|