sprintf '%-*s', $length, $string
Less noise in the format.
ihb
See perltoc if you don't know which perldoc to read!
In reply to Re^2: Generating standard length strings
by ihb
in thread Generating standard length strings
by kage-yojimbo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |