Anthony Gardner wrote:
I'm going to get into trouble for stating the obvious here but have you tried:and I need a code ref. The thing is, I can't make a code ref out of ....$self->method_to_invoke( $arg1, $arg2 );
$code_ref = sub { return shift->method_to_invoke( @_ ) }(ie. create a new anonymous method which is just a wrapper for your method - if your method is really quick and you're iterating *lots* it may affect timing a little)
John