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

Re: How can I access object data in a user defined sort cmp function?

by mr_mischief (Monsignor)
on Jan 28, 2015 at 23:15 UTC ( #1114829=note: print w/replies, xml ) Need Help??


in reply to How can I access object data in a user defined sort cmp function?

If sorting is something you care about within your class, then don't tell sort how to handle your object. Design a method that sorts your data within the object.

  • Comment on Re: How can I access object data in a user defined sort cmp function?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2022-01-22 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?