in reply to Re^2: The return value of m// (clues)
in thread The return value of m//
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 Section
Seekers of Perl Wisdom