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

Re^4: Sorting a "tuple" by the second value

by thmsdrew (Scribe)
on Apr 09, 2012 at 18:03 UTC ( #964174=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Sorting a "tuple" by the second value
in thread Sorting a "tuple" by the second value

Definitely helpful. I need to learn more about referencing and when it's best to use. Thanks!


Comment on Re^4: Sorting a "tuple" by the second value
Replies are listed 'Best First'.
Re^5: Sorting a "tuple" by the second value
by sundialsvc4 (Abbot) on Apr 09, 2012 at 18:38 UTC

    “Referencing” is a drop-dead simple idea, actually:   a reference is “a tiny thing” that refers to something else in memory.   That thing which is referred-to may be big or small, and there may be just one reference to it or a great many.   But each reference is very small and cheap.   So, for example, if you have in-memory a list of “big records,” you can swap and manipulate and what-have-you those records just by playing around with lists (or arrays, or hashes) of references to them:   nothing actually “moves.”   This lets you build up arbitrarily-complex data structures very easily, and to work with them very efficiently.   (Want to sort the same list of records by three separate keys at once, all in-memory, keeping all three lists, without making duplicate copies of anything?   Feel Free.™)   It’s one of the hallmarks of Perl and one of the compelling reasons for using this language.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2015-07-28 08:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (254 votes), past polls