note
naturalsciences
well my own code was like this.
<code>
#!/usr/bin/perl -w
use strict;
use warnings;
my @data=<>;
foreach (@data)
{
my @row=split(/\t/, $_);
my $otuhead=shift(@row);
my $logic=1;
foreach (@row)
{
if ($_>=0.01){$logic++;}
}
if ($logic!=1){print "$otuhead @row";}
$otuhead=();
}
</code>
<p>And yes I am acutely aware that the basic algorithm for finding out max, min etc. from a list has actually go through the list. I was just looking for utilities, commands, or whatnot that can make it well ... look nice would probably be the best explanation.
Something that does not need extra curly brackets and extra declared variables. Extra space and hmm more general eyestrain.
The question was more motivated by general curiosity than an actual need for this current problem. Which I have already solved (probably quite horribly as people soon will point out I guess :D) </p>
<p>edit: in code I shift off the first element -because it is a header and therefore not numerical.</p>
950396
950412