in reply to
string, or integer?
pack 'n', length($msg)
[download]
(Replace n with N or S or whatever depending on what order (if any) you need the two bytes in
Comment on
Re: string, or integer?
Download
Code
In Section
Seekers of Perl Wisdom