should do the trick. Note that with the "H*" format given to pack, you can use a long string. pack "H*", "02020d0a" encodes STX STX CR NL.$MySocket->send(pack "H*", "02")
If it's just a single byte, I'd use:
$MySocket->send("\x02")
In reply to Re: Terminal Client
by JavaFan
in thread Terminal Client
by cstrong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |