http://www.perlmonks.org?node_id=930235


in reply to formating the record

Hmm.. Consider:

Valérie-Dominique von Wolfeschlegelsteinhausenbergerdorff

You 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.

:)