in reply to Probably easy, but I'm stumped - telnet question

Do $datastring and/or $password maybe contain:

In short, if the other end isn't really speaking true "telnet", it can cause this sort of thing.

You could try $telnet->telnetmode(0); ... that turns this behavior off, making it more like a plain socket.

  • Comment on Re: Probably easy, but I'm stumped - telnet question

Replies are listed 'Best First'.
Re^2: Probably easy, but I'm stumped - telnet question
by taigu (Novice) on Feb 26, 2014 at 19:57 UTC

    Interesting. I'll give telenetmode a go. But no, those scalars wouldn't have an ASCII 255 value.

    Doesn't print automatically add a newline character? What might be happening is that I'm using $telnet->get; to retrieve my responses. That wacky character shows up in my server log when I send a print command - but only following a get command. Perhaps 'get' has something to do with it?

      If the host you are connecting to runs a shell that does "fancy" stuff with the command-line prompt - such as escape strings to set color, bold, reverse-video or whatever in the "terminal" font display - you might be getting residue from that… (but I'm whistling in the dark here).