Find all files with a name ending in ".pl*" in the current directory and its subdirectories, and search for the string "foo" in them, printing the names of the files that contain it.
find ./* -name "*.pl*" | xargs grep -lr 'foo'