in reply to Separating multiple keyword search input

Sorry, but your question is most unclear.

In your code, you have two files and $line2 is read from one file and $line3 is read from the second file, but $sline = "${line1}${line2}${line3}";. Where does $line1 come from?


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon