Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Using Perl for directory listing

by hippo (Bishop)
on Sep 30, 2022 at 08:35 UTC ( [id://11147171]=note: print w/replies, xml ) Need Help??


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.


🦛

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11147171]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-19 15:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found