in reply to Telnet.pm Sending CRLF

Looking at the source code of Telnet.pm:
sub print { my ($self) = shift; my ( $buf, $fh, $s, ); $s = *$self->{net_telnet}; $s->{timedout} = ''; return $self->error("write error: filehandle isn't open") unless $s->{opened}; ## Add field and record separators. $buf = join($s->{ofs}, @_) . $s->{ors}; ...

Can you already spot it? Yes, it's ors, the Output Record Separator. You can configure that, and the docs even tell you how. Isn't it great?

Replies are listed 'Best First'.
Re^2: Telnet.pm Sending CRLF
by PaulNg (Novice) on Feb 23, 2012 at 06:42 UTC
    Thanks moritz, that worked!