with$within = 1;
From your coded logic, there is no reason to continue looking through the rest of the array if you have found a match. You can also drop the declaration of $within and end the sub withreturn 1;
since no match was found if it finishes the loop.return 0;
In reply to Re: Re: Re: Array of arrays used within object
by esh
in thread Array of arrays used within object
by knirirr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |