Using Modules in Perl to Format Numbers



Using Modules in Perl to Format Numbers

Using Modules in Perl to Format Numbers

When we look at a file size returned by stat in Perl the value is in bytes. This will quickly become very difficult to read as the file size increases. We could run the calculations ourselves; however we can also leave the heavy lifting to Perl Modules. Although we do not look at the detail of Modules here, we will leave that to a later module, we show that with little coding we can add the Number::Format module to Perl to ensure that we have a well formatted file size at the end.
Additionally you can find my video courses on Pluralsight: http://pluralsight.com/training/Authors/Details/andrew-mallett and take time to see my own site http://www.theurbanpenguin.com

Comments are closed.