Re: [MacPerl] Equality of 2 lists

2001-05-07 Thread Ronald J Kimball
On Mon, May 07, 2001 at 08:39:42PM -0700, Stewart Leicester wrote: > I give up...in the last example, why should they ever compare different? > In this example, the two hashes compare different because $a{EXTRA} contains a reference to %b, while $b{EXTRA} contains a reference to %a, and those tw

Re: [MacPerl] Equality of 2 lists

2001-05-07 Thread Stewart Leicester
I give up...in the last example, why should they ever compare different? Stewart >On Thu, May 03, 2001 at 06:28:31PM +0200, Detlef Lindenthal wrote: > > How can I test if two lists are equal? > > > > Examples: > > These two lists should be equal: > > @List1a = (1, 2, 3); > > @List1b = (1,

Re: [MacPerl] Equality of 2 lists

2001-05-03 Thread Ronald J Kimball
On Thu, May 03, 2001 at 06:28:31PM +0200, Detlef Lindenthal wrote: > How can I test if two lists are equal? > > Examples: > These two lists should be equal: > @List1a = (1, 2, 3); > @List1b = (1, 1+1, 1+1+1); > > No pair of these should be equal: > @List2a = ("one", "two", "three"); > @List2b =