...my $href = $result->as_struct;# get an array of the DN namesmy @arrayOfDNs = sort keys %$href; # use DN hashes# process each DN using it as a keyforeach ( @arrayOfDNs ) { print $_, "\n"; my $valref = $$href{$_}; my %h=$valref; # get an array of the attribute names # passed for this one DN. my @arrayOfAttrs = sort keys %$valref; #use Attr hashes my $attrName; foreach $attrName (@arrayOfAttrs) { # skip any binary data: yuck! next if ( $attrName =~ /;binary$/ ); # get the attribute value (pointer) using the # attribute name as the hash my $attrVal = @$valref{$attrName}; print "\t $attrName: @$attrVal \n"; } # End of that DN}