||Ever found yourself staring at a deep filesystem and wondering which users own
files in it? This little snippet will grovel through it and display a list of
users, and the number of files that they own.
An alternative would be to count the bytes occupied by the files owned by a
given person. In this case you would want to accumulate (stat $_)
instead. You might also then want to pretty print the bytes.
update: changed use of stat to lstat as per Merlyn's excellent suggestion. As it turns out, I was looking at a Samba share, and ordinary lusers can't create symlinks. Still, it's a good habit to get into.