in reply to
disk usage statistics with perl internals?
AFAIK df(1) uses statfs(2). Look above for perl function
syscall
As of du(1), you can recursively dive into subject directory and summarize all files found.
Comment on
Re: disk usage statistics with perl internals?
In Section
Seekers of Perl Wisdom