--- demerphq <[EMAIL PROTECTED]> wrote:
> You are playing on some TV gameshow. You've won the big prize: a
> house. Now the thing is that the presenter gives you a choice of two
> envelopes. Both contain two house addresses. However one contains the
> same address twice and the other contains two seperate addresses.
> 
> The folks that argue that [$x,$x] is no different from [$x,$y] would
> say that it doesnt matter which envelope you choose as there is no
> difference. Those of use saying that [$x,$x] is different from
> [$x,$y]
> would suggest the opposite.

Yves,

With all due respect, if we're going to come up with contrived examples
to show one empty array ref is not the same as another empty array ref,
I could counter by coming up with an example where the behavior of *my*
code is not dependant on this.

The point is, it's not the case that your suggestion is wrong or that
the current implementation is wrong.  What you have correctly pointed
out is that there is a limitation in the current implementation of
is_deeply and there's a reasonable argument a different implementation.
 

In short, I think most agree that we're talking about two separate
things and that neither is wrong, so if someone wants to pitch a
solution rather than continue a long email chain, I'm sure we'd be
grateful :)

Cheers,
Ovid

-- 
If this message is a response to a question on a mailing list, please send
follow up questions to the list.

Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Reply via email to