in reply to Why study SCALAR?
I have done benchmarks repeating the same regex on the scalar, and multiple regex's on the same scalar. I have never found a speedup.
BTW, my benchmarks were like:
Basically, study() is an anachronism. Feel free to ignore it, everybody else does.use Benchmark qw(&cmpthese); $STUDIED_TEXT = $TEXT; study $STUDIED_TEXT; cmpthese($COUNT, { 'with study' => \&fn1, 'w/o study' => \&fn2 } );
|
|---|