in reply to Re^2: foreach - adding newlines?
in thread foreach - adding newlines?

Improper chomping doesn't explain the presence of a new line between v1 and v2.

Replies are listed 'Best First'.
Re^4: foreach - adding newlines?
by runrig (Abbot) on Feb 09, 2009 at 22:03 UTC
    It does explain it if he's just doing chomp; instead of chomp($some_variable); (expecting perl to magically know what to chomp).
      No. Why would not chomping add newlines in the middle of a string?
        I don't see middles of strings going into the array that gets printed. I see the "values", which are at the end. The "titles" at the beginning seem to be getting thrown away.