Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by Anonymous Monk
on Jun 19, 2016 at 07:16 UTC ( [id://1166064]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1166064]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2024-04-18 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found