in reply to Get the Total Size & Total Files in a Directory

You will want to use the File::Find module and the -s operator (or stat)

/J\

Replies are listed 'Best First'.
Re^2: Get the Total Size & Total Files in a Directory
by Anonymous Monk on Jan 12, 2005 at 11:33 UTC
    Be careful though. File::Find will report any occurence of a filename. Even if the same file has many names (links). Just summing up the -s results from whatever File::Find reports may not give you the total size of a directory.