You could also do:
foreach $field @ldapFields { $field =~ s/unvLocalPhone/Phone/; $field =~ s/unvLocalAddress/Address/; ...
the solution using hashes has already been presented by others ... see above
In reply to Re: A more efficient way to do this?
by Ratazong
in thread A more efficient way to do this?
by mirage4d
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |