in reply to Re: Benchmark Runs Only Once
in thread Benchmark Runs Only Once
timethese(..., do { no strict 'refs'; \&$func });
An alternative solution comes from the realisation that timethese can also take a string of Perl code.
timethese(..., $func.'()');
|
|---|