in reply to Re^4: File::Find stat question
in thread File::Find stat question

I'm using ... Activestate Perl

So you are very likely using Windows. There are ActiveState Perls for some Unix systems, but as most Unix systems have some Perl out of the box, ActiveState's Perl is rarely found on Unix systems.

I'll ... add up all the file sizes in the directories, I assume this will be slower than a stat on a dir?

Did you actually read my first answer? Let me repeat the two important points:

What is your intention?

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Replies are listed 'Best First'.
Re^6: File::Find stat question
by Anonymous Monk on Nov 30, 2014 at 23:15 UTC

    Thanks Alexander

    I'll do this.

    If you want to know the total number of bytes that the files in a directory use, THERE IS NO OTHER WAY than summing up their individual sizes returned by stat(). The size value returned by stat returns nonsense