in reply to using pipes in a system() call
On a side note, you can chown in Perl. Combining it with File::Find could make this tool pure Perl, reducing all sorts of possible problems.
Phil