Just another Perl shrine | |
PerlMonks |
Re^5: Regexp substitution on variable-length ranges with embedded code? (??{...})by LanX (Saint) |
on May 26, 2021 at 15:59 UTC ( [id://11133079]=note: print w/replies, xml ) | Need Help?? |
> It's still on the edge to have that $^N involved Actually you don't really need $^N, since you can test wether $3 is even defined. It makes the code also more robust against the insertion of other match-groups. The real power tool is the insertion of dynamically evaluated code with (??{... }) and I have to admit that I rarely need this.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|