in reply to Re: Remove new line characters
in thread Remove new line characters

This did the trick!

I used your code to figure out what the 'square' character was - it was represented by \x0d and \x0a.

then I deleted them using:
$line =~ tr/\x0d//d; $line =~ tr/\x0a//d;
Thanks for all the help everyone!

Replies are listed 'Best First'.
Re^3: Remove new line characters
by graff (Chancellor) on Apr 18, 2007 at 05:37 UTC
    You can simplify that:
    $line =~ tr/\x0a\x0d//d;