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


in reply to Compiling Regular Expressions

Zaxo has mentioned the qr operator, and diotalevi has said that regexps will be compiled and then cached by perl so that they are only compiled once. In addition to this there is the /o modifier (see perlop), which tells perl that the pattern should be compiled only once even if there is an interpolation in the pattern.

--
integral, resident of freenode's #perl