#! usr/bin/perl -w open(FILE,"<gene.txt"); my @lines=<FILE>; close(FILE); foreach my $line(@lines) { if($line=~/:/) { print "$`\n"; } }
BRCA1 TNF OMG
In reply to Re: Parsing in perl?
by ansh batra
in thread Parsing in perl?
by perllearner007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |