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.
|
---|
In Section
Seekers of Perl Wisdom