文章详情
时间:2008-05-09 来源:lvDbing
[[email protected] perl]# cat hash5.pl #!/usr/bin/perl -w %hash = ( 'fruit' , 'apple', 'sandwich' , 'hamburger', 'drink' , 'bubbly', ); foreach $key (sort {myfunction($a,$b)} keys %hash){ print "$key => $hash{$key}\n"; } sub myfunction { return (shift(@_) cmp shift(@_)); }
别惹神枪手安卓版
坦克战争世界
丛林反击战
1970-01-01