On Stackoverflow, there’s the question How can I convert a number to its multiple form in Perl?. The best answer for the particular problem is Number::Bytes::Human. Beyond, that, many of the answers take the usual if-elsif-else
, such as the one suggested by Michael Cramer: Continue reading “Eliminate needless loops and branching”
Category: perl
Perl 5.10 new features
Perl 5.10 introduced many new features that had built up over the years. Some of these we covered in the book, but we’ll cover some of those that we neglected. It might take us some time to get around to them all, but we’ll eventually make it. If you want to read about some sooner than others, let us know. Continue reading “Perl 5.10 new features”
Perl 5.8 features
Perl 5.8, mostly a release that improved much of the unseen things in Perl, did have some notable, user-visible features.
- Restricted hashes with Hash::Util (5.8.0)
- Use sitecustomize.pl to affect all programs (5.8.7)
- PerlIO is now the default (5.8.0)