Thanks, I first tried a while loop like this, but then all my matches got ranking 1. So that's the reason I begun trying other loop structures. But now it works, thanks.

In reply to Re^2: adding rank to a match in while loop. by BioGeek
in thread adding rank to a match in while loop. by BioGeek

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":