in reply to sorting a hash by keys, according to preference

If you know all of the keys you want to reference, and the order you'd like them in, why not just avoid the sort in the first place?
for my $point ( @{$aoh} ) { for my $type ( qw ( start stop step ) ) { print "$type = " . $point->{$type} . "\t"; } print "\n"; }

Replies are listed 'Best First'.
Re^2: sorting a hash by keys, according to preference
by vindaloo (Acolyte) on Apr 13, 2005 at 04:12 UTC
    Thanks for the pointers! I was sure it had to be more simple than a Shwartzian Transform...