The stupid question is the question not asked | |
PerlMonks |
Re: On the regex pattern variable to be inserted into anotherby BillKSmith (Monsignor) |
on Feb 10, 2022 at 00:10 UTC ( [id://11141299]=note: print w/replies, xml ) | Need Help?? |
I suspect that you have a regex with a fixed a variable part.
You want to know if you can speed it up by pre-compiling the fixed part.
Clearly the syntax is allowed. You would have to benchmark your case to find out if and how much it helps.
Bill
In Section
Seekers of Perl Wisdom
|
|