Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
“Why, yes,” you reply, “one can say in a regex”: “But,” I reply, “what if you want to interpolate a pattern?” Thoughts? UPDATE: ambrus suggested in the CB to remind the compiler that I want to use 5.010, and that works: which solves my problem, but seems strange. Why should the presence or absence of an empty regex require me to add an apparently superfluous use? UPDATE: ambrus answered that, too. It's because the interpolated regex changes the big regex from a constant that can be compiled at compile time, to something not known to be constant that must be compiled at run time. Ah, well. I was too eager to post. :-) In reply to Can't say in a regex? by JadeNB
|
|