in reply to
Retrieving from a hash in Insertion Order
Perhaps make an array of the keys in your hash. And when adding push to array the keys. Then shift will give keys back in insertion order.
Comment on
Re: Retrieving from a hash in Insertion Order
Replies are listed 'Best First'.
Re^2: Retrieving from a hash in Insertion Order
by
Scarborough
(Hermit)
on Jun 23, 2004 at 10:10 UTC
I did consider this myself but as the data is already in the hash from XML::Simple I discounted it as I can't garuntee the return order. But thanks for your help.
[reply]
In Section
Seekers of Perl Wisdom