in reply to Re^2: Problem with pre-compiled regex
in thread Problem with pre-compiled regex
Compiling a short and simple regex that consists of only one string literal is so fast that you'll probably have trouble to come up with a benchmark to measure it. So if there is a difference, it'll be too small to be easily observable.
I also think that Perl has an internal cache that avoids recompiling the same regex all over again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Problem with pre-compiled regex
by ikegami (Patriarch) on Jan 18, 2012 at 07:03 UTC |