As nobody has mentioned it already, there is another way:
sub rpad { pack "A$_[1]", $_[0]};
In reply to Re: Generating standard length strings
by Corion
in thread Generating standard length strings
by kage-yojimbo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |