The chomp perl snippet must leave cursor at line end.