in reply to One header for multiple results

You have the line that prints the header in your inner while loop. Of course you get it with every sequence. Move that statement to before your loop, and you will see it only once.

Dum Spiro Spero

Replies are listed 'Best First'.
Re^2: One header for multiple results
by lairel (Novice) on Oct 21, 2015 at 15:08 UTC
    I had tried that, but then it would bunch the headers before the results. I appreciate the suggestion!

      Not if you did what I suggested ... but I see in the end you have an answer.

      Dum Spiro Spero