in reply to Re^2: Initializing iterations while benchmarking
in thread Initializing iterations while benchmarking
Okay, but then you can reset pos in case three, as you already explained.
sub { my @filtered = grep { pos = 0; /exception:/g && !/\Gtex/ } @thre +e; }
Is there something wrong with this? Aside from the overhead of resetting pos, of course.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Initializing iterations while benchmarking
by ig (Vicar) on Aug 07, 2009 at 10:43 UTC | |
by alexm (Chaplain) on Aug 07, 2009 at 11:05 UTC | |
by ig (Vicar) on Aug 07, 2009 at 11:19 UTC |