Syntactic Confectionery Delight | |
PerlMonks |
Re^4: Advanced Sorting - GRT - Guttman Rosler Transformby JavaFan (Canon) |
on Aug 18, 2009 at 10:15 UTC ( [id://789410]=note: print w/replies, xml ) | Need Help?? |
Easy. Imagine you have to sort objects. Objects written by someone who understands encapsulation (hence, unlikely to be a native Perl programmer). So, there's no way to compare two objects using an operator - you've got to call a method in one of the objects, passing the other as argument, for instance:
I doubt you can either use a ST or a GRT (I am one of the people who don't think GRT is a special case of ST) to sort this.
In Section
Meditations
|
|