Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; open(FH, "table") or die "Can't open file to read!:$! \n"; my $i=2; for (my $i=2; $i<=682; $i++){ while (<FH>){ chomp; my @matrix=split; my $seed=$matrix[$i];#each time I compare one column; next until ($seed=~/[ACGTN-]/ && (!($seed =~ /\$seed/))) { print "P",$i," "; }#Line 23 } $i=$i+1; }until($i>682);#Line 29 close FH; exit;
Edit kudra, 2002-05-30 Fixed code tags--wrap entire code in one set of code tags, not each line in code tags!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to control the loop
by cLive ;-) (Prior) on May 30, 2002 at 00:49 UTC | |
(MeowChow) Re: How to control the loop
by MeowChow (Vicar) on May 30, 2002 at 01:04 UTC | |
Re: How to control the loop
by ChemBoy (Priest) on May 30, 2002 at 01:12 UTC |