in reply to Re^3: Directory tree explorer with stats reporting
in thread Directory tree explorer with stats reporting

Another reason could be that the program encountered an ephemeral file which was gone by the time program checks for its size (thus causing addition of undef, resulting in error message).