http://qs321.pair.com?node_id=1206009


in reply to Performance penalty of using qr//

IMNSHO, there's no point in using qr// for regexps that are not built out of string in variables. If the whole regex is static, Perl is clever enough to optimize it. It's only if the code contains things like $foo =~ /bar$baz\wbat/ that Perl needs some help in deciding whether it needs to compile the regex again or whether it can reuse the one from the previous iteration.

Jenda
Enoch was right!
Enjoy the last years of Rome.