On Thu, Apr 08, 2004 at 10:57:58AM -0700, Stas Bekman wrote:
> and we ought to document this... hint, hint :)

I have attached a diff against v1.09 of the TestUtil.pm file. I'm not
sure if my explanation is entirely accurate. Please review and let me
know.


Thanks,
William

-- 
Knowmad Services Inc.
http://www.knowmad.com
--- TestUtil.pm.orig    2004-04-09 11:58:59.000000000 -0400
+++ TestUtil.pm 2004-04-09 12:01:16.000000000 -0400
@@ -424,6 +424,11 @@
 
 This function is exported by default.
 
+When comparing undef values, you must force the received value into an lvalue.
+You can do this with the following example:
+
+  t_cmp(undef, scalar foo(), "compare undef return value from foo()")
+
 =item t_debug()
 
   t_debug("testing feature foo");

Reply via email to