I needed to find all the files that contained a specific string pattern. The first solution that comes to mind is using find piped with xargs grep:
perl -ne 'print if (/begin pattern/../end pattern/)' filename