http://qs321.pair.com?node_id=569940


in reply to Problem with HOA.

Update wrong answer. cog has it right.

use strict; use warnings; my %hash=( 1=> [1.5, 2.1, 3.1], 2=> [1.2, 2.2, 3.2], 3=> [1.3, 2.3, 3.3], ); my @array = sort {$a<=> $b} map {@{$hash{$_}}} keys %hash; print "@array";

Prints:

1.2 1.3 1.5 2.1 2.2 2.3 3.1 3.2 3.3

DWIM is Perl's answer to Gödel