Maybe I am simplistic, but this works:
my $str = "abc"; while ($str =~ m/.(?=.|$)/gc) { say "1: ", pos $str; } while ($str =~ m/.(?=.|$)/gc) { say "2: ", pos $str; }
In reply to Re: perl indication of end of string already matched
by Tux
in thread perl indication of end of string already matched
by nachumk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |