> This is just Perl related but as it's running under
> mod_perl, I'm sure you lot won't mind ;)
>
> I'm trying to benchmark a piece of code with timeit
> and I need a code ref. The thing is, I can't make a
> code ref out of ....
>
> $self->method_to_invoke( $arg1, $arg2 );
>
> I've tried various obvious ways but to no avail.
>
> CIA
>
my $coderef = $self->can('method_to_invoke');
looks through the inheritance tree for a sub called 'method_to_invoke'
and returns the coderef if one exists.
Regards
Jeff