in reply to Re^2: Transferring hash keys to array... Need help sorting
in thread Transferring hash keys to array... Need help sorting

It's usually easier to use $labels[0] and $hash{$labels[0]} instead of maintaining the same order in the content array. I think that's what Laurent is getting at. But if you really want to have a bunch of parallel arrays, here's the pattern for sorting them:
my @order = sort { $labels[$a] cmp $labels[$b] } 0 .. $#labels; @labels = @labels[@order]; @content = @content[@order]; @more_content = @more_content[@order];

Replies are listed 'Best First'.
Re^4: Transferring hash keys to array... Need help sorting
by Laurent_R (Canon) on Apr 22, 2017 at 12:04 UTC
    Yes, that was what I was getting at. Either this, or a hash or hashes, as shown by an anonymous monk just below.