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

Any way to get hashes to loop in order?

Thread Next
From:
ToddAndMargo
Date:
September 30, 2017 01:55
Subject:
Any way to get hashes to loop in order?
Message ID:
b29d09d4-3d08-d470-dbc0-4899966c9163@zoho.com
Hi List,

for %SmtpIni.kv -> $key, $value { say $key; }

Does "say" the keys in the order that I created them.

Is there a way to get them to do so?


Many thanks,
-T

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