Hello. I have a text file with some gene names as shown below.
BRCA1:breast cancer 1, early onset
TNF: tumor necrosis factor
OMG:oligodendrocyte myelin glycoprotein
I would like to get the gene name that is only BRCA1,TNF,OMG . How do I parse in perl this text file with this list of genes?