diyaz has asked for the wisdom of the Perl Monks concerning the following question:
I usually don't have a problem with this because I usually buffer the whole file into a hash and sort through it after. This time I wanted to make if then decisions on the fly.@Name AGCATATA...whatever nucleotide sequence + KKKKKKKK...quality score
why does this throw an error. The strange thing is if instead of assigning the filehandle and just have it iterate once with a "or die" command it will tell me it died at the END of the file instead of the next line??For (<INFILE>) { if (/^@(\S+)/) { print $1; my $seq = <INFILE>; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Iterating single line within a For Loop
by BrowserUk (Patriarch) on Feb 25, 2015 at 17:20 UTC | |
Re: Iterating single line within a For Loop
by kennethk (Abbot) on Feb 25, 2015 at 17:47 UTC | |
by diyaz (Beadle) on Feb 25, 2015 at 19:20 UTC | |
Re: Iterating single line within a For Loop
by pvaldes (Chaplain) on Jun 23, 2015 at 14:33 UTC |