Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Double interpolation of captured substringsby gaal (Parson) |
on Nov 17, 2004 at 09:59 UTC ( [id://408350]=note: print w/replies, xml ) | Need Help?? |
You might consider assigning your matches into an array, and subscripting that programmatically.
(You need error handling here, of course; and it probably makes sense to promote the scope of %patterns a bit so that it doesn't get constructed every time you enter the sub.)
In Section
Seekers of Perl Wisdom
|
|