in reply to Pretty text reports with perl
Instead of the previously suggested formats, you might want to consider (s)printf.