On Fri, 2009-11-06 at 17:21 -0500, Nathan Gibbs wrote:
> How would I get the length of a string as returned by length () into
>
> a 4 byte unsigned integer in network byte order
>
> Thanks
>
> --
> But there's no sense crying over every mistake.
> You just keep on trying till you run out of ca
* Alexander Krasnorutsky wrote:
> On Fri, 2009-11-06 at 17:21 -0500, Nathan Gibbs wrote:
>> How would I get the length of a string as returned by length () into
>>
>> a 4 byte unsigned integer in network byte order
>>
>> Thanks
>>
>>
>
> It's simple.
>
> $unsigned_4byte_int = pack 'N', length($y
Nathan Gibbs wrote:
How would I get the length of a string as returned by length () into
a 4 byte unsigned integer in network byte order
my $length = pack 'N', length $string;
John
--
The programmer is fighting against the two most
destructive forces in the universe: entropy and
human stup