my( $uid, $gid ) = (stat $file)[4,5]; ++$user{$uid}; ++$group{$gid}; #### sub { ++$used{shift(); ++$group{shift()}; }->((stat $file)[4,5]);