find -name \*.pl -print0 | xargs -0 grep foo