in reply to Re: Terminal Client
in thread Terminal Client

Thanks to everyone for the fast responses.

The trick I was missing was to send the data as octal as per your suggestions. So for example if I use
$MySocket->send("\02\8\03");
The receiving end sees this as hex "02 38 03" (STX 8 ETX). Which is exactly correct. I can use the octal conversion functions as suggested by you guys to convert string "en mass".

Many thanks for everyones help!

Replies are listed 'Best First'.
Re^3: Terminal Client
by JavaFan (Canon) on Oct 24, 2008 at 15:47 UTC
    \8 isn't valid octal. The result is a warning, and sending hex value 38. This just happens what you want, but \7 sends hex value 7. You don't want the \ in front of characters you want to send as they appear.