in reply to formating the record
Hmm.. Consider:
Valérie-Dominique von WolfeschlegelsteinhausenbergerdorffYou clearly need (as implied in ikegami's second solution above) to run an initial loop over your list of names to determine the length of your first output field.
:)
In Section
Seekers of Perl Wisdom