Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Printing Output in different way

by k_manimuthu (Monk)
on May 08, 2010 at 04:32 UTC ( #838998=note: print w/replies, xml ) Need Help??


in reply to Printing Output in different way

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://838998]
help
Chatterbox?
[nysus]: so, I can't seem to post to perlmonks
[nysus]: I just get a "preview" button but no way to submit

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2017-12-15 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (416 votes). Check out past polls.

    Notices?