- or download this
my %lookup;
while (<$LDIF>) {
...
$lookup{$dn} = $samACCOUNTNAME
if defined $dn and defined $samACCOUNTNAME; # only if both are fou
+nd
}
- or download this
if($lookup{$current_dn}) { ... }
- or download this
push @{$lookup{$dn}}, $samACCOUNTNAME;
- or download this
$lookup{$current_dn}[0]