in reply to Easy way to search files?
Not to be anti-perl, but what you need is "grep". There are versions for win and obviously unix. This program is optimized to do exactly what you want. But, if your doing this to stimulate your perl brain cells, GO for it.