Help for this page

Select Code to Download


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