Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: code explanation

by cdarke (Prior)
on Aug 04, 2011 at 10:39 UTC ( [id://918492]=note: print w/replies, xml ) Need Help??


in reply to code explanation

sort will sort the array reference by each element of @AoA
join joins the result together using the contents of $;
The resulting string is used as a key to %uniq, and the value is incremented
If the value is one, then True is returned to grep, and a copy of the original value from @AoA is stored in @r.

Try breaking down a statment like this into its parts, and try each part at a time to see what it does. Experimenting will teach you a lot.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2024-04-23 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found