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

It does explain it if he's just doing chomp; instead of chomp($some_variable); (expecting perl to magically know what to chomp).

Replies are listed 'Best First'.
Re^5: foreach - adding newlines?
by ikegami (Patriarch) on Feb 09, 2009 at 22:25 UTC
    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.
        doh, you're right