Re: Apparent bugs in various things

Gisle Aas (aas@bergen.sn.no)
21 Mar 1997 10:01:01 +0100


Spider Boardman <spider@web.zk3.dec.com> writes:

> The problem with having it barf on the LVALUE ref is caused by
> passing a constant SV as a subroutine argument.  *That*, at least,
> can be fixed by the following:
> 
> --- HTTP/Message.pm.~1~	Mon Nov 25 10:00:52 1996
> +++ HTTP/Message.pm	Fri Mar 21 02:26:01 1997
> @@ -42,7 +42,7 @@
>      } else {
>  	$header = new HTTP::Headers;
>      }
> -    $content = '' unless defined $content;
> +    $content ||= '';

This would also change "0" into "" which is bad.  Can you try to
explain once more what the problem is?

>      bless {
>  	'_headers' => $header,
>  	'_content' => $content,
> 
> 
> That avoids generating the initial '_content' member with a
> constant.

-- 
Gisle Aas <aas@sn.no>