Debugging

Isn’t it always the way? No sooner have you announced to the world/the boss/the collaborators that your software is ready to make great discoveries – you find a really nasty bug.
My Perl tip for the week: if you’re storing a bunch of hash keys that you may or may not require depending on a condition, don’t write a loop that deletes them based on the condition. Loop through them and use next() to ignore the non-relevant keys instead. Pretty obvious and basic, I know.

Yes, this post is just a self-reminder that I write a primarily-bioinformatics blog.