in reply to Re: Vertical Regex
in thread Vertical Regex
my ($frg) = @ARGV; $frgfile = "$frg"; open(frgfile) or die("Unable to open FRG file"); while(<frgfile>) { if (/^{FRG/../^}/){ if (/^acc:(\d+)/) { print ">$1\n"; } elsif ( /^seq:/ ) { while(<frgfile>) { last if /^\./; print; } } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Vertical Regex
by zwon (Abbot) on Jun 04, 2009 at 17:18 UTC |