in reply to Re: Parsing ldap attributes into a csv
in thread Parsing ldap attributes into a csv

Why complicate the matter more than needed? :)

csv (in => \@records, headers => \@col_names, out => "/tmp/foo.csv");

Enjoy, Have FUN! H.Merijn