in reply to Reading column data from a file
Why not eliminate this line of code:
if ($_ && /1tally\s\s(\d+)\s+nps\s=/i) {
and the corresponding ending curly brace below and just have the for loop cycle through the first five lines
doing nothing with those lines?