It seems that when you do @lines=<FIN>, each new line in the content will become an empty line inside the array. You could simply add print "--$msg--\n"; between line 7 and 8 to see what you got from reading each line.
#For example, a file content is as follows:
Min:18 | Max:903347710
Start: 1358360970686
#The print out of each line content is as follows:
--Min:18 | Max:903347710
--
--Start: 1358360970686
--
Taywin
Posting Maven
2,633 posts since Apr 2010
Reputation Points: 275
Solved Threads: 375
Skill Endorsements: 17