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

Like this? Works fine.

#!/usr/bin/perl # http://perlmonks.org/?node_id=1188504 use strict; use warnings; my %hash = qw( title1 one title3 three title4 four title2 two ); my @labels = sort keys %hash; my @content = @hash{@labels}; use Data::Dumper; print Dumper \%hash; print "\n"; print Dumper \@labels; print "\n"; print Dumper \@content;

Replies are listed 'Best First'.
Re^4: Transferring hash keys to array... Need help sorting
by DARK SCIENTIST (Novice) on Apr 21, 2017 at 17:12 UTC
    This could work. I'm going to try and implement it tonight