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.
In reply to Re^3: Initializing iterations while benchmarking
by alexm
in thread Initializing iterations while benchmarking
by ig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |