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
and0.. $#names
0 .. $#desc
yield up the same list, so either is acceptable.
HTH!
Philosophy can be made out of anything. Or less -- Jerry A. Fodor
In reply to Re: Re: Re: Multi @array searches
by arturo
in thread Multi @array searches
by akm2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |