Re: Apparent bugs in various things
Spider Boardman (spider@web.zk3.dec.com)
Fri, 21 Mar 1997 02:31:24 -0500
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 ||= '';
bless {
'_headers' => $header,
'_content' => $content,
That avoids generating the initial '_content' member with a
constant.
--spider