the first case maybe, tho I'm not sure about the implications of having no modifiers outside but inside.
But how did you prove that /$foo/ is recompiling?
Anyway as I said $str =~ $foo shouldn't! (untested)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^4: On the regex pattern variable to be inserted into another
by LanX
in thread On the regex pattern variable to be inserted into another
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |