grain_of_sand has asked for the
wisdom of the Perl Monks concerning the following question:

I am trying to debug my understanding of the matching operator.
When invoked with the g modifier in list context, I thought that
the return value is a list of all possible matches. If capturing
parentheses are used, then the list is the set of all $1, $2, etc
captured.

This is because the (\w):(\w) can match a:b and also b:c. It appears
that the regex engine finds the first match of a:b and then starts
the next matching attempt after the b, in which case it cannot find the
b:c match. I expected the next matching attempt to start after the a,
so that the b:c match would also be found.

I have read the Camel book chapter on this & the perlop man page,
but they don't really have a lot to say about this...

Went to join the gridlock to see it
Held an eclipse party
Watched a live feed
I cn"t see tge kwubosd to amswr thus
I tried to see it, but 8000 miles of rock got in the way
What eclipse?
Wanted to see it, but they wouldn't reschedule it
Read the book instead