BMC Bioinformatics

official impact factor 3.03

Open Access Highly Access Correspondence

An introduction to scripting in Ruby for biologists

Jan Aerts* and Andy Law

BMC Bioinformatics 2009, 10:221 doi:10.1186/1471-2105-10-221

Obfuscating Perl Code

Nicholas Dickens   (2009-08-21 09:56)  The Institute of Cancer Research email

Generally I think this article is really good and anything that encourages more biologists into programming should be welcomed. However, the complexity of the Perl code example on p3. has been unnecessarily exaggerated. The same result as the Ruby code can be achieved with the simpler code:

open INFILE, "my_file.txt";
while(<INFILE>){
chomp();
print reverse($_)."\n";
}
close INFILE;


Granted this is still longer than the Ruby code, but this should have been identified by the reviewers.

Competing interests

No competing interests to declare.

top

Post a comment