in reply to Re: Re: Multi @array searches
in thread Multi @array searches

Recall that 0 .. $#array; gives you a list of all the values between 0 and the maximum index of @array, or, in other words, the list of the indexes of @array.

That bit of code assumes (and I made this assumption explicit) that the members of @names map 1:1 onto members of @desc; and if that is true, then

0.. $#names
and
0 .. $#desc

yield up the same list, so either is acceptable.

HTH!

Philosophy can be made out of anything. Or less -- Jerry A. Fodor