my %hash2=( a => "apple", b => "boy", c => "cat" ); print "\n$hash2{$_}" for (sort keys %hash2);
while we use the sort function in hash. We access keys in asc order.
In reply to Re: Printing Output in different way
by k_manimuthu
in thread Printing Output in different way
by sarshads
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |