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

Reply via email to