Email updates

Keep up to date with the latest news and content from BMC Bioinformatics and BioMed Central.

Open Access Highly Accessed 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

PubMed Commons is an experimental system of commenting on PubMed abstracts, introduced in October 2013. Comments are displayed on the abstract page, but during the initial closed pilot, only registered users can read or post comments. Any researcher who is listed as an author of an article indexed by PubMed is entitled to participate in the pilot. If you would like to participate and need an invitation, please email info@biomedcentral.com, giving the PubMed ID of an article on which you are an author. For more information, see the PubMed Commons FAQ.

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