$hash{$_} = { content => $hash{$_}, position => $i++ } for sort keys % +hash; [download]
In reply to Re: hash 2 array ? by CombatSquirrel in thread hash 2 array ? by michaelg