in reply to search pattern and arrays

When I run your code, I do not get the output that you get. I get this:
First Occurence: Line number:3

What is the significance of "90" in your output?

Another observation: you declare $file_name, but never use it.