AllGoodBits.org

Perl - Convenient and Well Written

Often, particularly in its early days before the various movements for better perl, perl code was written badly. Here is an example, do-nothing script/module that serves me as an example of how to write small scripts and modules using some of the better approaches.

With the exception of some POD requirements and minor perltidy(1)ing that I usually don't care about, this code passes Perl::Critic using PBP policies all the way, that is down to Severity: 1 (aka brutal).

Clearly, this is not perfect, both in that it is non-comprehensive even for my own purposes and because there are controversies about what actually is the best approach. But I'm not expecting perfection. I wrote it to refer to when I come back to perl after having spent a lot of time programming in other languages.