Searching and reading all HTML files
Posted on 2001-06-07
I want to either use a program or write a perl program to put a simple search function on my website. I want to read all html files in all directories that reside under the main directory. I want to be able to count the occurences of a user entered string that are in each file. Does anyone know how to code Perl to:
1. Loop through all files in all directories and read their contents.
2. Count the occurances of a given string in a file.
Thanks for your help