Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Sorting complex data

by sundialsvc4 (Abbot)
on Feb 13, 2013 at 20:18 UTC ( #1018626=note: print w/replies, xml ) Need Help??


in reply to Sorting complex data

To clarify the above ... the sort verb allows a comparison subroutine to be specified.   That can be as simple as the “one-liner” in-between (and including) the curly braces, which uses the <=> operator designed expressly for this purpose, or it can be a much more complicated function.   Within that function, for your further convenience, the variables $a and $b are magically defined.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1018626]
help
Chatterbox?
[Corion]: GrandFather: Yeah, I'm currently in the same situation - I get DOM node IDs from Chrome, except that they vanish at some point in time, or event, or whatever. My current workaround is to re-fetch the node IDs all the time, but that is slow

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (10)
As of 2017-08-24 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (365 votes). Check out past polls.

    Notices?