All pastes #928125 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-04 20:39 UTC
rendered paste body
foreach (@dirList) {
    $user = getpwuid(stat($_)->uid);
    # split up the info that du returns into tokens, resuse @tokens array
    #@tokens = split(' ', qx(du -S "$dir"), 2);
    #$size = $tokens[0];
    $size = -s $_;
    # push the sizes of the users directories onto users stack
    push @{$HoA_Sizes{$user}}, $size;
    push @{$HoA_Dirs{$user}}, $dir;

  }