in reply to Trouble finding/reading from text file

(Disregard what I said about only reading the first line -- missed your undef $/)

Update: Also noticed something strange with your regular expression:

... /\$start_year$start_month$start_day$test_site\E/i); ^^? ^^?
Perhaps you are missing a Q after the first slash.