Keep It Simple, Stupid | |
PerlMonks |
Re^2: Modifying pos() from within (?{...})by mxb (Pilgrim) |
on Apr 26, 2018 at 13:07 UTC ( [id://1213602]=note: print w/replies, xml ) | Need Help?? |
Oh! of course! I was returning "(.){$len}", which is $len number of single character capture groups. What I actually wanted was "(.{$len})" - a single capture of length $len. I also see you added the missing /s modifier, which explains why it was stopping mid way through. That makes the (??{...}) issue much clearer. Thanks!
In Section
Seekers of Perl Wisdom
|
|