in reply to what on earth is going on?
will always be true.if(($count != $var1) || ($count !=$var2) || ($count !=$var3))
see perlrun for details. also try this static cmd on your spectralfile:my $cmd = q#perl -F, -aane 'chomp @F; print join ",\t", @F[ grep(! /^(# . "$var1|$var2|$var3" . q!)$/, 0..$#F)] ' ! . " $spectralfile > $diroutput$output "; warn $cmd; system( $cmd );
perl -F, -lane 'chomp @F; print join ",\t", @F[ grep(! /^(1|10|6)$/, 0 +..$#F)] ' blah.txt
|
|---|