in reply to Terminal Client

Use the hex or oct built-in functions...

On a separate note, if you are connecting to a telnet daemon, you should probably use Net::Telnet

Replies are listed 'Best First'.
Re^2: Terminal Client
by JavaFan (Canon) on Oct 24, 2008 at 15:22 UTC
    Use the hex or oct built-in functions...
    That would only help if you run hex() and oct() on the receiving end:
    $ perl -wE 'print hex "02"' | od -a 0000000 2 0000001 $
    What the OP probably wants is pack:
    $ perl -wE 'print pack "H*", "02"' | od -a 0000000 stx 0000001
    But I advice him to use Net::Telnet.