in reply to Re-use of a global match

You are using the g modifier.

That means the first time you are looking for the first match, second time for the second match - but there is no second match (and never will, because your regexp is anchored).

See perlre and perlop for details.