in reply to disk usage statistics with perl internals?

You can just perform the same syscalls that du and df do. See syscall.

It's a hard way, but you've asked for it.

Update: you can use strace to find out which system calls are performed.

  • Comment on Re: disk usage statistics with perl internals?