|
|
| Do you know where your variables are? | |
| PerlMonks |
Re^3: Evaluating code in a regex at runtime: (??{...})by Athanasius (Vicar) |
| on Jan 28, 2013 at 08:44 UTC ( #1015641=note: print w/ replies, xml ) | Need Help?? |
|
Yes, you’re right. So in dave_the_m’s example, all we need to do is add another set of parentheses:
and the dynamically generated capture group is assigned to $3. For example:
Output:
What we (apparently) can’t get is multiple
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||