in reply to persistent new line

Because you need to chomp your lines.

I didn't read the code closely enough.

Replies are listed 'Best First'.
Re^2: persistent new line (>chomp)
by tye (Sage) on Feb 15, 2012 at 18:37 UTC

    Yes, exactly. But even better than chomp, IMHO, is just s/\s+$//, particularly since elsewhere the specter of "\r\n" was noted (not implementing something that breaks in the face of other forms of trailing whitespace is also a big "win").

    - tye        

Re^2: persistent new line
by enkibian (Initiate) on Feb 16, 2012 at 00:18 UTC

    Isn't this bit chomping this variable?

    chomp $line;
      Yes. I didn't read too closely.