Each time the script runs, the array is rewritten to up to about 1000 times with the number of elements ranging from about 200-600. Each element of the array has the form "X12:345" I am comparing $element and $compare to find a match such that if $element = X12:345, I want to find $compare = X0:344 or $compare = X24:344. Any suggestions as to how I can make this more efficient would be greatly appreciated. Thanks.foreach $element(@array){ foreach $compare(@array){ if ($element == $compare){next} <see if $element and $compare meet requirements> } }
In reply to recursive array search by state-o-dis-array
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |