Your script currently shells out to a grep for every single entry in your master file. That's not good for efficiency. Why not shell out once before the loop and let join take the strain? There's even an implementation of join in pure perl if your OS doesn't have it. At that point your perl code just opens the output from join and reads in and filters the results once.
HTH
In reply to Re: Better way to search an Array?
by hippo
in thread Better way to search an Array?
by doubleqq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |