How to get exact hash key name by giving indexed value in perl?
Method 1:
%final9=(9,5,7,1,4,6);
@d=sort keys %final9;
print "\n$d[2]";
Method 2:
%final3=(9,5,7,1,4,6);
print ((sort keys %final3)[0]);
Method 3:
%final5=(1,5,9,1,3,6);
print ((%final5)[0]);
0 Comments:
Post a Comment
Note: only a member of this blog may post a comment.
<< Home