title: Take a reference to a Perl operator
body: <p>In Perl, is it possible to take a sub reference to an operator (e.g. <code>eq</code> or <code>gt</code>)? Or is it not possible because they are not subs? I'd like to avoid redefining operators as subs where a comparison function is required.</p>
  
  <p>I'm applying a checking function to config values, where the checker depends on the config key. One such checker is "compare to another key's value". The compare function can be defined via anonymous sub, or a named sub can be implement for each comparison type, but I think it's nicer to be able to say <code>compare_to("OTHER_KEY", \&amp;eq)</code>.</p>
  
  <p>EDIT: since one commentator wanted context and someone else voted to close as "too broad", I'll be <em>absolutely clear</em> that the question is not "how to write a config checker". This is only about taking references to operators: is it possible or not, what caveats apply?</p>