I've got an easy Set problem. I have two lists of objects and I want intersection and difference, etc.
BUT I'd like to have them be compared by calling $_->id rather than refaddr $_. I don't think either Set::Object or Set::Scalar allow the user to provide an identity comparison function, or make clear how to subclass to change identity comparison.
Am I missing it, or is there another module that allows this? It seems like a common need.
thanks
update: edited for clarity
In reply to Set modules and object comparison by qq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |