Send Carriage return

2

280SEL

Hello:

I hope that someone can set me on the right track with this:

I am trying to establish a Heartbeat with a remote machine using Perl.
I am sending a string like so:

print $socket "$output";

In order to keep the line open, the remote machine wants a carriage
return at the end (HEX 0D).

I have tried the perl \n, I have tried all kinds of ways , including:

$output=$string.hex'0D';
print $socket "$output";

This, of course, translates the hex carriage return into Decimal 13
and sends that number which doesn't help.

Does anybody know how to do this?

Any help would be greatly appreciated!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top