PERL 哈希排序 values

#!/usr/perl/bin use strict; use Data::Dumper; my %h=( "Alex"=>24, "Sam"=>25, "Bob"=>30, "Andy"=>11, "Wills"=>35, "Mary"=>16, "Helen"=>24 ); print(Dumper(\%h)); # output original hash my @keys = sort {
相關文章
相關標籤/搜索