William McKee wrote:
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
------------------------------------------------------------------------
--- 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()")
+
Thanks William, I've committed this included the other solution as well.
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com