in reply to Perl Script for checking and reporting file sizes in a directory.
You can get a list of files from a directory with opendir, readdir and closedir, or with glob.
If you have a filename, -s $filename gives you the size.
You should use File::Find to recursively traverse directories.
|
|---|