in reply to chomp removes everything *except* the newline?

So then I add chomp(@IPLIST); before my loop, and the output becomes this:

Then the file probably contained

111.111.111.111<something><NL> 222.222.222.222<something><NL>

where <something> is interpreted by the terminal as some sort of command sequence.