Hint: look for the phrase "search position" in perlop. Also consider that scalar global matches are typically used in loops, for example
for my $match ($a =~ /\d+/g) { print "$match\n" }
In reply to Re^3: The return value of m// (clues)
by quester
in thread The return value of m//
by sophate
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |