in reply to Re: file header change
in thread file header change
thanks tmharish..
i used the following, but its not working.. :
use strict; use warnings; sub read_file { my( $filename ) = <STDIN>; my @lines; sub read_file { my( $filename ) = <STDIN>; my @lines; open( FILE, "< $filename" ) or die "Can't open $filename : $!" +; { if( @line =~ />contig_(\d+)\s/ ) { print ">$1\n"; } else { print "$line\n"; } }
:-(
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: file header change
by tmharish (Friar) on Feb 05, 2013 at 10:42 UTC | |
by utpalmtbi (Acolyte) on Feb 05, 2013 at 11:20 UTC |
In Section
Seekers of Perl Wisdom