I wouldn't bother doing this with Perl; combining find and xargs should do the trick.
--t. alex$ find /usr/home/foobar -name *.foo | xargs doit -switches
In reply to Re: looking for a quickie
by talexb
in thread How do I execute a shell command against each file in a directory and it's subdirectories? (was: looking for a quickie)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |