Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: a way to do 'sort|uniq'

by jch341277 (Sexton)
on Aug 02, 2005 at 18:35 UTC ( [id://480279]=note: print w/replies, xml ) Need Help??


in reply to Re: a way to do 'sort|uniq'
in thread a way to do 'sort|uniq'

sh1tn - I don't understand how this works:

@_{@telephones}=(),print+join$/,sort{ $a <=> $b }keys%_;

I hope you're not disinclined to explain?

Replies are listed 'Best First'.
Re^3: a way to do 'sort|uniq'
by sh1tn (Priest) on Aug 02, 2005 at 19:12 UTC
    @_{@telephones}=(); # %_ hash from @telephones print+ # print the join $/, # joined with "\n" separator sort{ $a <=> $b }keys%_; # list which comes from %_ keys


Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://480279]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-03-28 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found