while (<>) { if (/\^E|gmake/i) { push(@errors, $_); } }