in reply to Re: IF Statement Testing
in thread IF Statement Testing
Yes, you can use grep, but that means doing a linear search that only exits after stepping through all elements, even if the first element found satisfies the criteria. If this conditional is to be tested repeatedly, doing a hashtable lookup is more elegant and more efficient...and depending on who you ask, easier on the eyes.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: IF Statement Testing
by northwind (Hermit) on May 14, 2005 at 18:37 UTC |