Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Net::Telnet with an uncooperative server.

by regexes (Hermit)
on Apr 12, 2013 at 06:42 UTC ( [id://1028297]=note: print w/replies, xml ) Need Help??


in reply to Net::Telnet with an uncooperative server.

By default newline translation is done.
I don't know if it will help... just an idea...

Have you tried changing the binmode?
$mode = 1 $obj->binmode($mode);
From the Net::Telnet documentation:
If $mode is 1 then binmode is on and newline translation is not done.

If $mode is 0 then binmode is off and newline translation is done. In the input stream, each sequence of CR LF is converted to "\n" and in the output stream, each occurrence of "\n" is converted to a sequence of CR LF.
Maybe you can then see in input_log() and dump_log() exactly what's happening.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1028297]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-25 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found