Access to iterator inside perl hashes, plus helper functions.