in reply to Re: Re: See if arrays match
in thread See if arrays match

Oops, you're right.. I was in the unlucky position that the last element of my test array was a duplicate. In this case there wouldn't appear an error.. However, I think it's easier (to understand, anyway) to just change the condition for the first while to:

while (@sorted > 1) ...

Which works, because if there is only one element left, it can't be a duplicate.

Thanks for pointing this out :)

Regards,
-octo