|
|
| Think about Loose Coupling | |
| PerlMonks |
Re: A Set String Legngthby perlmonkey (Hermit) |
| on Jul 27, 2000 at 03:47 UTC ( [id://24626]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
And just to be obnoxious, you can use sprintf, like
young perlhopper.
$foo = sprintf("%-10s", "Hello");
or you can do
$String .= " " x (10-length($String));
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||