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.
In reply to Re^3: Problem with pre-compiled regex
by moritz
in thread Problem with pre-compiled regex
by saranrsm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |