If your actual data has any whitespace at the end (other than the newline), then that could explain why you are seeing no output. When I download your data, there is no
extra whitespace, but perhaps it got cropped off when you posted it (or when I downloaded it). Perhaps try looking for extra whitespace using:
@tmpHeader = grep /^Test\s+\d+\s+of\s+\d+\s*?$/../^\d+\s+end$/, @allDa
+ta;
^^^^