P is for Practical | |
PerlMonks |
Re^4: Regexp substitution on variable-length ranges with embedded code? ( $^N )by Polyglot (Chaplain) |
on May 26, 2021 at 14:45 UTC ( [id://11133071]=note: print w/replies, xml ) | Need Help?? |
LanX,
Your code does a better job at meeting my understanding. It's still on the edge to have that $^N involved, but that is the sort of method I was hoping to learn. I'll need to use it more to get the feel of what it is doing, perhaps, but I can see that your code does do the job. ...and you found a typo in my OP. Nobody's perfect. My forearms and fingers are actually sore from typing for a solid 7-8 hours both yesterday and today, so I guess I'll lay the blame there (lame excuse, perhaps, but true nonetheless). Blessings, ~Polyglot~
In Section
Seekers of Perl Wisdom
|
|