in reply to Generating standard length strings
As nobody has mentioned it already, there is another way:
sub rpad { pack "A$_[1]", $_[0]};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Generating standard length strings
by crashtest (Curate) on Apr 14, 2005 at 19:20 UTC |