in reply to Parsing a file.. having trouble.

Your code on github does not compile.

This post does, and the problem seems to be duplication of this test:

} elsif ($failure_type ne '') {
You seem to have copy/pasted the same set of lines without setting separate variables to distinguish 'passed' from 'skipped'.

Try 'perltidy' to improve code formatting, and if you find youself repeating very similar lines of code, consider subroutines.

        ...Disinformation is not as good as datinformation.               Don't document the program; program the document.