in reply to Re: Re: Array of arrays used within object
in thread Array of arrays used within object
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Array of arrays used within object
by knirirr (Scribe) on Aug 08, 2003 at 09:29 UTC |