in reply to Re: Generating standard length strings
in thread Generating standard length strings

sprintf '%-*s', $length, $string

Less noise in the format.

ihb

See perltoc if you don't know which perldoc to read!