# Remove all empty files in '$dir' and below.

my $dir = "/some/path"; system "find '$dir' -size 0c | xargs rm";