David Landgren writes:

> Michael Schwern wrote at the beginning of this thread:
> 
>  > What it *shouldn't* do is what Test.pm does, namely execute the
>  > code ref and compare the values returned.  It would just compare
>  > the refernces.
> 
> Why should it not do that? Is this because of subs with side effects? 
> Isn't that more an issue of "Doctor, it hurts when I hit my knee with a 
> hammer"?

Also there are subs that do different things which might happen to
return the same value for particular input parameters.  Talking of
which, presumably the only way to invoke the code-ref is without any
parameters, which might be completely inappropriate.

Smylers
-- 
May God bless us with enough foolishness to believe that we can make a
difference in this world, so that we can do what others claim cannot be done.

Reply via email to