good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^5: Hashes do preserve insertion order after allby LanX (Saint) |
on Aug 01, 2019 at 02:37 UTC ( [id://11103690]=note: print w/replies, xml ) | Need Help?? |
You will always need to update two data structures if you reuse Perl structures. The OP suggested using sort, so how efficient is that without caching the result? Maybe B-Trees are better suited here, though this certainly depends on the use case.
Cheers Rolf
In Section
Meditations
|
|