develooper Front page | perl.perl6.users | Postings from September 2017

Re: Any way to get hashes to loop in order?

Thread Previous | Thread Next
From:
Parrot Raiser
Date:
September 30, 2017 17:41
Subject:
Re: Any way to get hashes to loop in order?
Message ID:
CACwLAp8sdkojw2Di+LkQY6PX9OyRYTXfwdGzqCFooaUwADhDgA@mail.gmail.com
Prepending the real key value with an order indicator, then sorting
the retrieved list on the key would achieve that, (though the maximum
number size would have to be known in advance.

E.g. 001First_key => data1, 002Second => data2

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About