while () { if (/^(?:E|gmake)\s*:/) { push(@errors, $_); } }