while (<>) { push(@array, $&) if m/^\w+(?!\s+Vet)/; } print("@array\n");