in reply to Extract failed VS project name from build log

How about looking for the following:

Project : error PRJ0019
although using a regular expresson to do it, such as:
if ($totalOutput =~ /^Project : error (\w+)/) { my $project = $1; ... }
(or better), as that seems to also be a good indicator of which project failed. Or is it more complex than that?