in reply to Re: Hashes - sorting keysin thread Hashes - sorting keys
What needs explaining?
# get a sorted list of hash keys and store in array @temps my @temps = sort { $a <=> $b } keys %hash; # use a hash slice to get list of values in the same order # as the keys in @temps and store in array @fluors my @fluors = @hash{@temps}; [download]
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg