in reply to Re: Extra Character from telnet
in thread Extra Character from telnet

Ok, I put the test before the chomp and now I no longer get the little square but what looks like a carriage return.

15:5:52 - User: 'sriley ' = '7372696c65790d0a'

-----
Of all the things I've lost in my life, its my mind I miss the most.

Replies are listed 'Best First'.
(z) Re^3: Extra Character from telnet
by zigdon (Deacon) on Dec 06, 2002 at 13:40 UTC
    Ok, so there's a confusion what the end of line is here. The telnet client is sending a CRLF, and when you chomp it, you end up (for some reason) with only the CR. You could try messing with $/ to get chomp to cut off both chars. See perlvar for more details.

    -- Dan