Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Hashes do preserve insertion order after all

by Anonymous Monk
on Aug 04, 2019 at 21:51 UTC ( [id://11103890]=note: print w/replies, xml ) Need Help??


in reply to Hashes do preserve insertion order after all

When you start to delete things you'll see that the ordering quickly breaks and once broken does not return.
  • Comment on Re: Hashes do preserve insertion order after all

Replies are listed 'Best First'.
Re^2: Hashes do preserve insertion order after all
by LanX (Saint) on Aug 05, 2019 at 18:26 UTC
    The OP was explicitly sorting by ref address of the values.

    No matter how many hash entries you delete this order won't change.

    The real problems with this approach were already addressed.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-24 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found