In Perl, is it possible to take a sub reference to an operator (e.g.
gt fall under a special category of the CORE functions where you can't create references to them. This is detailed in the documentation here http://perldoc.perl.org/CORE.html
So it looks like you can't do what you want to. I think you're options include:
'eq'and doing an
compare_toand calling your comparator there.
lt, then if the value is a coderef, call that.
AUTOLOADif you are interested in going down that route.