You're probably dealing with a unix formatted file, which has "\012" as the newline sequence, while windows uses "\015\012". By default perl only recognizes the standard OS newline sequence.
A quick fix would be to set $/ to "\012" prior to reading the file.