in reply to disk usage script done only in Perl w/o system call

Well, the first part is probably something like:
use File::Find; my %blocks_by_user; find sub { my @stat = lstat; $blocks_by_user{$stat[4]} += $stat[12]; }, "/";
Does that help get you started?

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: Re: disk usage script done only in Perl w/o system call
by slok (Acolyte) on Apr 13, 2001 at 19:48 UTC
    thanks a lot...
    will read up more on File::Find.