Use the hex or oct built-in functions...That would only help if you run hex() and oct() on the receiving end:
What the OP probably wants is pack:$ perl -wE 'print hex "02"' | od -a 0000000 2 0000001 $
But I advice him to use Net::Telnet.$ perl -wE 'print pack "H*", "02"' | od -a 0000000 stx 0000001
In reply to Re^2: Terminal Client
by JavaFan
in thread Terminal Client
by cstrong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |