Keep It Simple, Stupid | |
PerlMonks |
Re: Using Perl for directory listingby hippo (Bishop) |
on Sep 30, 2022 at 08:35 UTC ( [id://11147171]=note: print w/replies, xml ) | Need Help?? |
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. 🦛
In Section
Seekers of Perl Wisdom
|
|