in reply to Peek a hash without breaking iterator

copying includes walking a hash (each) ... see Hash::StoredIterator - Functions for accessing a hashes internal iterator.

Found with hash iterator

  • Comment on Re: Peek a hash without breaking iterator ( Hash::StoredIterator )

Replies are listed 'Best First'.
Re^2: Peek a hash without breaking iterator ( Hash::StoredIterator )
by hurricup (Pilgrim) on Jun 19, 2016 at 07:41 UTC
    This works like a charm. Not checked CPAN (don't know why), just googled :) If anyone can suggest other solutions, interested in them all.