in reply to Print Match name for certain rows

Do your input data sections (for each partnm) always end with "fab" ?

If so, you could read and process the information for one part at a time by setting:

$/="fab\n";

        If your eyes hurt after you drink coffee, you have to take the spoon out of the cup.
              -Norm Crosby