in reply to Re^2: A more efficient way to do this?
in thread A more efficient way to do this?
if ($field eq unvLocalPhone) || ($field eq unvCampusPhone)){ $field = "Phone"; }
There will several or more cases of this actually. I am wondering if these instances make using a hash a bit more cumbersome?
Performance is an issue with this script; it is already a bit slow due to the size of the directory being searched. I have read on more than one occasion that hashes, while good coding practice in Perl, are somewhat more resource intensive than simple arrays. Though in this case all of these conditionals may negate any theoretical performance gain achieved by using a simple array. Any thoughts here?
Thanks again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: A more efficient way to do this?
by kennethk (Abbot) on Feb 11, 2010 at 21:34 UTC |