Tom Hughes writes: > I must admit it had never occurred to me that somebody might > deliberately use keys or values to achieve that, but I guess > somebody might be relying on it without realising it. while (($k,$v) = each %foo) { last if ...; } keys %foo; # reset the iterator while (($k,$v) = each %foo) { ... # begin again from the start } Nat
- Idea: minor %hash changes Nathan Torkington
- Re: Idea: minor %hash changes Tom Christiansen
- Re: Idea: minor %hash changes Nathan Torkington
- Re: Idea: minor %hash changes Tom Christiansen
- Re: Idea: minor %hash changes Tom Christiansen
- Re: Idea: minor %hash changes Tom Hughes
- Re: Idea: minor %hash changes Nathan Torkington
- Re: Idea: minor %hash changes Tom Hughes
- Re: Idea: minor %hash changes Jerrad Pierce
- Re: Idea: minor %hash changes Tom Hughes