in reply to Generating standard length strings
sprintf '%-*s', $length, $string [download]
Less noise in the format.
ihb
See perltoc if you don't know which perldoc to read!