At 17:47 2002-04-02 +0100, Marcus Taylor wrote:
>[...]by placing 'use bytes' at the top of ../5.6.1/LWP/Protocol/http.pm 
>the problem is fixed and since content-length is always in bytes, this 
>should become a permanent part of the length calculation.

Hm, that's tricky, because it would make that module incompatible with 
pre-5.6 Perls.
But presumably one could make do with something like this:

BEGIN{
   eval 'use bytes; sub blength ($) { length $_[0] }';
   $@ and eval '    sub blength ($) { length $_[0] }' ;
}
and then replace length(...) with blength(...)

That would work, right?


--
Sean M. Burke    [EMAIL PROTECTED]    http://www.spinn.net/~sburke/

Reply via email to