http://www.perlmonks.org?node_id=236542


in reply to Compiling Regular Expressions

You've got two considerations - normal regexes which do not use interpolation are compiled exactly once without you doing anything special on your end. Zaxo's reference to the qr operator applies when you interpolate variables but only need to do that once or occassionally. And then from there its even slower to interpolate qr compiled expressions into other expressions (only because you're compiling more often than necessary).


Seeking Green geeks in Minnesota