in reply to Using Perl for directory listing
Is there another module I should be using
It depends how easy you want to make it. I like Path::Tiny for things like this. It has both size and size_human methods for displaying the size and stat for providing a more intuitive interface to the results from the system stat call which choroba has already mentioned.
🦛
|
|---|